-
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.
add support for angular formatting (#177)
Signed-off-by: Kangrui Ye <[email protected]>
- Loading branch information
1 parent
442403a
commit a4a72b3
Showing
15 changed files
with
83 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import {TSESLint} from '@typescript-eslint/utils'; | ||
|
||
import {RecommendedConfig} from './recommended/recommended.config'; | ||
import {RecommendedHtmlConfig} from './recommended-html/recommended-html.config'; | ||
import {FormatConfig, RecommendedConfig} from './recommended/recommended.config'; | ||
import {FormattingHtmlConfig, RecommendedHtmlConfig} from './recommended-html/recommended-html.config'; | ||
import {RecommendedTypescriptConfig} from './recommended-typescript/recommended-typescript.config'; | ||
|
||
export const configs: Record<string, TSESLint.Linter.Config> = { | ||
'recommended-typescript': RecommendedTypescriptConfig, | ||
'recommended-html': RecommendedHtmlConfig, | ||
'html-formatting': FormattingHtmlConfig, | ||
recommended: RecommendedConfig, | ||
formatting: FormatConfig, | ||
}; |
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
8 changes: 8 additions & 0 deletions
8
packages/eslint-plugin-angular/src/configs/recommended-html/rules/format.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 {TSESLint} from '@typescript-eslint/utils'; | ||
|
||
const pluginPrefix = '@angular-eslint/template'; | ||
|
||
export const formatAngularTemplateEslintRules: TSESLint.Linter.RulesRecord = { | ||
[`${pluginPrefix}/attributes-order`]: 'error', | ||
[`${pluginPrefix}/no-interpolation-in-attributes`]: 'error', | ||
}; |
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