forked from OpenWF/SpaceNinjaServer
		
	improve: remove prettier workflow, instead error on formatting problems (#457)
This commit is contained in:
		
							parent
							
								
									12f3e1e9d1
								
							
						
					
					
						commit
						e52a625714
					
				@ -4,14 +4,13 @@
 | 
				
			|||||||
        "plugin:@typescript-eslint/recommended",
 | 
					        "plugin:@typescript-eslint/recommended",
 | 
				
			||||||
        "plugin:@typescript-eslint/recommended-requiring-type-checking"
 | 
					        "plugin:@typescript-eslint/recommended-requiring-type-checking"
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "plugins": ["@typescript-eslint"],
 | 
					    "plugins": ["@typescript-eslint", "prettier"],
 | 
				
			||||||
    "env": {
 | 
					    "env": {
 | 
				
			||||||
        "browser": true,
 | 
					        "browser": true,
 | 
				
			||||||
        "es6": true,
 | 
					        "es6": true,
 | 
				
			||||||
        "node": true
 | 
					        "node": true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "rules": {
 | 
					    "rules": {
 | 
				
			||||||
        "@typescript-eslint/semi": "warn",
 | 
					 | 
				
			||||||
        "@typescript-eslint/explicit-function-return-type": "warn",
 | 
					        "@typescript-eslint/explicit-function-return-type": "warn",
 | 
				
			||||||
        "@typescript-eslint/explicit-module-boundary-types": "warn",
 | 
					        "@typescript-eslint/explicit-module-boundary-types": "warn",
 | 
				
			||||||
        "@typescript-eslint/restrict-template-expressions": "warn",
 | 
					        "@typescript-eslint/restrict-template-expressions": "warn",
 | 
				
			||||||
@ -25,7 +24,9 @@
 | 
				
			|||||||
        "@typescript-eslint/no-explicit-any": "warn",
 | 
					        "@typescript-eslint/no-explicit-any": "warn",
 | 
				
			||||||
        "@typescript-eslint/no-loss-of-precision": "warn",
 | 
					        "@typescript-eslint/no-loss-of-precision": "warn",
 | 
				
			||||||
        "no-case-declarations": "warn",
 | 
					        "no-case-declarations": "warn",
 | 
				
			||||||
        "no-mixed-spaces-and-tabs": "warn"
 | 
					        "prettier/prettier": "error",
 | 
				
			||||||
 | 
					        "@typescript-eslint/semi": "error",
 | 
				
			||||||
 | 
					        "no-mixed-spaces-and-tabs": "error"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "parser": "@typescript-eslint/parser",
 | 
					    "parser": "@typescript-eslint/parser",
 | 
				
			||||||
    "parserOptions": {
 | 
					    "parserOptions": {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -5,8 +5,6 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
    build:
 | 
					    build:
 | 
				
			||||||
        runs-on: ubuntu-latest
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
        permissions:
 | 
					 | 
				
			||||||
            contents: write
 | 
					 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
            - name: Checkout
 | 
					            - name: Checkout
 | 
				
			||||||
              uses: actions/checkout@v4.1.2
 | 
					              uses: actions/checkout@v4.1.2
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										23
									
								
								.github/workflows/prettier.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/prettier.yml
									
									
									
									
										vendored
									
									
								
							@ -1,23 +0,0 @@
 | 
				
			|||||||
name: Prettier
 | 
					 | 
				
			||||||
on: [push]
 | 
					 | 
				
			||||||
jobs:
 | 
					 | 
				
			||||||
    format:
 | 
					 | 
				
			||||||
        runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
        permissions:
 | 
					 | 
				
			||||||
            contents: write
 | 
					 | 
				
			||||||
        steps:
 | 
					 | 
				
			||||||
            - name: Checkout
 | 
					 | 
				
			||||||
              uses: actions/checkout@v4.1.2
 | 
					 | 
				
			||||||
              with:
 | 
					 | 
				
			||||||
                  ref: ${{ github.head_ref }}
 | 
					 | 
				
			||||||
            - name: Setup Node.js environment
 | 
					 | 
				
			||||||
              uses: actions/setup-node@v4.0.2
 | 
					 | 
				
			||||||
              with:
 | 
					 | 
				
			||||||
                  node-version: "20.x"
 | 
					 | 
				
			||||||
            - run: npm ci
 | 
					 | 
				
			||||||
            - run: npm run prettier
 | 
					 | 
				
			||||||
            - name: Commit changes
 | 
					 | 
				
			||||||
              uses: stefanzweifel/git-auto-commit-action@v5.0.0
 | 
					 | 
				
			||||||
              with:
 | 
					 | 
				
			||||||
                  commit_message: Apply prettier changes
 | 
					 | 
				
			||||||
                  branch: ${{ github.head_ref }}
 | 
					 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user