-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update, refactor, and fix ec linting
- Loading branch information
Showing
41 changed files
with
794 additions
and
592 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// @ts-check | ||
const eslint = require("@eslint/js"); | ||
const tseslint = require("typescript-eslint"); | ||
const angular = require("angular-eslint"); | ||
|
||
module.exports = tseslint.config( | ||
{ | ||
files: ["**/*.ts"], | ||
extends: [ | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.stylistic, | ||
...angular.configs.tsRecommended, | ||
], | ||
processor: angular.processInlineTemplates, | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ | ||
type: "attribute", | ||
prefix: "app", | ||
style: "camelCase", | ||
}, | ||
], | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ | ||
type: "element", | ||
prefix: "app", | ||
style: "kebab-case", | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.html"], | ||
extends: [ | ||
...angular.configs.templateRecommended, | ||
...angular.configs.templateAccessibility, | ||
], | ||
rules: { | ||
"@angular-eslint/template/label-has-associated-control": "off" | ||
}, | ||
} | ||
); |
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 |
---|---|---|
|
@@ -41,11 +41,6 @@ | |
"@angular-devkit/build-angular": "^18.2.4", | ||
"@angular-devkit/core": "^18.2.4", | ||
"@angular-devkit/schematics": "^18.2.4", | ||
"@angular-eslint/builder": "18.3.1", | ||
"@angular-eslint/eslint-plugin": "18.3.1", | ||
"@angular-eslint/eslint-plugin-template": "18.3.1", | ||
"@angular-eslint/schematics": "18.3.1", | ||
"@angular-eslint/template-parser": "18.3.1", | ||
"@angular/cli": "^18.2.4", | ||
"@angular/compiler-cli": "^18.2.4", | ||
"@angular/language-service": "^18.2.4", | ||
|
@@ -55,12 +50,10 @@ | |
"@types/jasminewd2": "~2.0.13", | ||
"@types/node": "^22.5.4", | ||
"@types/uri-templates": "^0.1.34", | ||
"@typescript-eslint/eslint-plugin": "^8.5.0", | ||
"@typescript-eslint/parser": "^8.5.0", | ||
"@typescript-eslint/utils": "^8.5.0", | ||
"angular-eslint": "18.3.1", | ||
"concurrently": "^9.0.1", | ||
"cypress": "13.14.2", | ||
"eslint": "^9.10.0", | ||
"eslint": "^9.9.1", | ||
"jasmine-core": "~5.3.0", | ||
"jasmine-spec-reporter": "~7.0.0", | ||
"karma": "~6.4.4", | ||
|
@@ -70,12 +63,13 @@ | |
"karma-jasmine-html-reporter": "^2.1.0", | ||
"lite-server": "^2.6.1", | ||
"ts-node": "~10.9.2", | ||
"typescript": "~5.5.4" | ||
"typescript": "~5.5.4", | ||
"typescript-eslint": "8.2.0" | ||
}, | ||
"author": { | ||
"name": "Kai Toedter", | ||
"email": "[email protected]", | ||
"url": "https://toedter.com" | ||
}, | ||
"private": true | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.