.eslintrc.json
{
"ignorePatterns": [
"!**/*",
"**/test.ts",
"**/main.ts"
],
"env": {
"jest": true,
"browser": true
},
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"projects/ng-let/tsconfig.lib.json",
"projects/ng-let/tsconfig.spec.json",
"projects/ng-let-demo/tsconfig.app.json",
"projects/ng-let-demo/tsconfig.spec.json"
],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "ng",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "ng",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}