-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update to ESLint v9 with flat config (#183)
Co-authored-by: Daniel Kimmich <json-derulo@users.noreply.github.com>
- Loading branch information
1 parent
736c595
commit 88949c2
Showing
7 changed files
with
1,400 additions
and
1,916 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import tseslint from "typescript-eslint"; | ||
import angularEslint from "angular-eslint"; | ||
|
||
export default tseslint.config( | ||
{ | ||
files: ["**/*.ts"], | ||
extends: [ | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
...angularEslint.configs.tsRecommended, | ||
], | ||
processor: angularEslint.processInlineTemplates, | ||
languageOptions: { | ||
parserOptions: { | ||
project: true, | ||
}, | ||
}, | ||
rules: { | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"@typescript-eslint/restrict-plus-operands": "off", | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ | ||
prefix: "app", | ||
style: "kebab-case", | ||
type: "element", | ||
}, | ||
], | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ | ||
prefix: "app", | ||
style: "camelCase", | ||
type: "attribute", | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.spec.ts"], | ||
rules: { | ||
"@typescript-eslint/dot-notation": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.html"], | ||
extends: [ | ||
...angularEslint.configs.templateRecommended, | ||
...angularEslint.configs.templateAccessibility, | ||
], | ||
rules: { | ||
"@angular-eslint/template/no-call-expression": "error", | ||
"@angular-eslint/template/no-duplicate-attributes": "error", | ||
"@angular-eslint/template/no-interpolation-in-attributes": "error", | ||
"@angular-eslint/template/use-track-by-function": "error", | ||
"@angular-eslint/template/prefer-self-closing-tags": "error", | ||
}, | ||
}, | ||
); |
Oops, something went wrong.