Created
November 6, 2023 15:24
-
-
Save chadyred/94ea645a1c854d99512da8a509630797 to your computer and use it in GitHub Desktop.
First eslint with Allman brace style (brace to next line after class header) used for typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended" | |
], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { "project": ["./tsconfig.json"] }, | |
"plugins": [ | |
"@typescript-eslint", | |
"@stylistic" | |
], | |
"rules": { | |
"@stylistic/indent": ["error", 2], | |
"@typescript-eslint/brace-style": "off", | |
"@stylistic/brace-style": ["error", "allman"], | |
"@stylistic/no-trailing-spaces": "error", | |
"@stylistic/no-multi-spaces": "error", | |
"@stylistic/no-multiple-empty-lines": ["error", {"max" : 1, "maxEOF": 0}], | |
"@stylistic/eol-last": ["error", "always"], | |
"@typescript-eslint/strict-boolean-expressions": [ | |
2, | |
{ | |
"allowString" : false, | |
"allowNumber" : false | |
} | |
] | |
}, | |
"ignorePatterns": ["src/**/*.spec.ts", "dist"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment