-
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.
Signed-off-by: Kangrui Johann Ye <kangrui.ye@cloudflight.io>
- Loading branch information
1 parent
c1d9561
commit da2c071
Showing
21 changed files
with
184 additions
and
270 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
packages/eslint-plugin-angular/src/configs/recommended-html/recommended-html.config.ts
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...eslint-plugin-angular/src/configs/recommended-typescript/recommended-typescript.config.ts
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
packages/eslint-plugin-angular/src/configs/recommended/recommended.config.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,2 +1,43 @@ | ||
export {configs} from './configs'; | ||
export {rules} from './rules'; | ||
import tseslint from 'typescript-eslint'; | ||
import angular from 'angular-eslint'; | ||
import {cloudflightTypescriptConfig} from '@cloudflight/eslint-plugin-typescript'; | ||
import {eslintRules} from './configs/eslint'; | ||
import {typescriptEslintRules} from './configs/typescript-eslint'; | ||
import {angularEslintRules} from './configs/angular-eslint'; | ||
import {angularTemplateEslintRules} from './configs/angular-eslint-template'; | ||
|
||
export const cloudflightAngularTypescriptConfig = tseslint.config( | ||
{ | ||
files: ['**/*.{ts,mts,cts}'], | ||
extends: [ | ||
...cloudflightTypescriptConfig, | ||
...angular.configs.tsRecommended, | ||
], | ||
processor: angular.processInlineTemplates, | ||
rules: { | ||
...eslintRules, | ||
...typescriptEslintRules, | ||
...angularEslintRules, | ||
} | ||
}, | ||
); | ||
|
||
export const cloudflightAngularTemplateConfig = tseslint.config( | ||
{ | ||
files: ['**/*.html'], | ||
extends: [ | ||
...angular.configs.templateRecommended, | ||
...angular.configs.templateAccessibility, | ||
], | ||
rules: { | ||
...angularTemplateEslintRules, | ||
// todo: this should be its own config | ||
// ...formatAngularTemplateEslintRules, | ||
} | ||
} | ||
); | ||
|
||
export const cloudflightAngularConfig = tseslint.config( | ||
...cloudflightAngularTypescriptConfig, | ||
...cloudflightAngularTemplateConfig, | ||
); |
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
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.