Skip to content

Commit

Permalink
Fix lint script (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Oct 27, 2023
1 parent cc605cb commit 0f559db
Show file tree
Hide file tree
Showing 4 changed files with 1,454 additions and 102 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"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"
],
"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": {}
}
]
}
17 changes: 15 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"@schematics/angular:interceptor": {
"skipTests": true
},
"@schematics/angular:module": {
},
"@schematics/angular:module": {},
"@schematics/angular:pipe": {
"skipTests": true
},
Expand Down Expand Up @@ -135,8 +134,22 @@
"devServerTarget": "hap:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit 0f559db

Please sign in to comment.