-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adapt some rules are are too strict Signed-off-by: Kangrui Ye <[email protected]> * update dependencies Signed-off-by: Kangrui Ye <[email protected]> * bump version Signed-off-by: Kangrui Ye <[email protected]> --------- Signed-off-by: Kangrui Ye <[email protected]>
- Loading branch information
1 parent
4f4954c
commit a29c134
Showing
15 changed files
with
108 additions
and
95 deletions.
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
...eslint-plugin-angular/src/configs/recommended-typescript/recommended-typescript.config.ts
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import {Linter} from 'eslint'; | ||
|
||
import {angularEslintRules} from './rules/angular-eslint'; | ||
import {typescriptEslintRules} from './rules/typescript-eslint'; | ||
|
||
export const RecommendedTypescriptConfig: Linter.BaseConfig = { | ||
plugins: ['@cloudflight/angular', '@cloudflight/typescript', '@angular-eslint'], | ||
parser: '@typescript-eslint/parser', | ||
extends: ['plugin:@cloudflight/typescript/recommended'], | ||
rules: { | ||
...angularEslintRules, | ||
...typescriptEslintRules, | ||
}, | ||
}; |
8 changes: 8 additions & 0 deletions
8
packages/eslint-plugin-angular/src/configs/recommended-typescript/rules/typescript-eslint.ts
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,8 @@ | ||
import type {Linter} from 'eslint'; | ||
|
||
const pluginPrefix = '@typescript-eslint'; | ||
|
||
export const typescriptEslintRules: Linter.RulesRecord = { | ||
// angular modules are usually empty, so this rule is turned off just for them | ||
[`${pluginPrefix}/no-extraneous-class`]: '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
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
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.