37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
|
{
|
||
|
"root": true,
|
||
|
"ignorePatterns": ["projects/**/*"],
|
||
|
"overrides": [
|
||
|
{
|
||
|
"files": ["*.ts"],
|
||
|
"parserOptions": {
|
||
|
"project": ["tsconfig.json", "e2e/tsconfig.json"],
|
||
|
"createDefaultProgram": true
|
||
|
},
|
||
|
"extends": [
|
||
|
"plugin:@angular-eslint/recommended",
|
||
|
"plugin:@angular-eslint/template/process-inline-templates",
|
||
|
"plugin:prettier/recommended"
|
||
|
],
|
||
|
"rules": {}
|
||
|
},
|
||
|
// NOTE: WE ARE NOT APPLYING PRETTIER IN THIS OVERRIDE, ONLY @ANGULAR-ESLINT/TEMPLATE
|
||
|
{
|
||
|
"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" }]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|