Skip to content

Commit

Permalink
Merge pull request #3 from bleything/add-linters
Browse files Browse the repository at this point in the history
add basic linting
  • Loading branch information
sis0k0 committed Oct 6, 2022
2 parents 559aa15 + ce17e72 commit f84c049
Show file tree
Hide file tree
Showing 8 changed files with 7,001 additions and 373 deletions.
50 changes: 50 additions & 0 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"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"
],
"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": {}
}
]
}
14 changes: 13 additions & 1 deletion client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,21 @@
"options": {
"browserTarget": "client:build"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"defaultProject": "client"
"defaultProject": "client",
"cli": {
"defaultCollection": "@angular-eslint/schematics"
}
}
Loading

0 comments on commit f84c049

Please sign in to comment.