Skip to content

Instantly share code, notes, and snippets.

@chadyred
Created November 6, 2023 15:24
Show Gist options
  • Save chadyred/94ea645a1c854d99512da8a509630797 to your computer and use it in GitHub Desktop.
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
{
"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