Created
August 18, 2022 06:31
-
-
Save anartzdev/0fc6f283cb99bcc235c8c1a8cd0959c9 to your computer and use it in GitHub Desktop.
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
Show hidden characters
{ | |
"root": true, | |
"ignorePatterns": ["projects/**/*"], | |
"overrides": [ | |
{ | |
"files": ["*.ts"], | |
"parserOptions": { | |
"project": ["tsconfig.json"], | |
"createDefaultProgram": true | |
}, | |
"extends": [ | |
"plugin:@angular-eslint/recommended", | |
"plugin:@angular-eslint/template/process-inline-templates", | |
"plugin:prettier/recommended" | |
], | |
"rules": { | |
"@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": ["plugin:@angular-eslint/template/recommended"], | |
"rules": {} | |
}, | |
// NOTE: WE ARE NOT APPLYING @ANGULAR-ESLINT/TEMPLATE IN THIS OVERRIDE, ONLY PRETTIER | |
{ | |
"files": ["*.html"], | |
"excludedFiles": ["*inline-template-*.component.html"], | |
"extends": ["plugin:prettier/recommended"], | |
"rules": { | |
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW) | |
"prettier/prettier": ["error", { "parser": "angular" }] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment