Skip to content

Commit 004fed5

Browse files
committed
Installed linter
1 parent 0642602 commit 004fed5

4 files changed

Lines changed: 9853 additions & 6404 deletions

File tree

.eslintrc.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json"
14+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"@angular-eslint/directive-selector": [
23+
"error",
24+
{
25+
"type": "attribute",
26+
"prefix": "app",
27+
"style": "camelCase"
28+
}
29+
],
30+
"@angular-eslint/component-selector": [
31+
"error",
32+
{
33+
"type": "element",
34+
"prefix": "app",
35+
"style": "kebab-case"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"files": [
42+
"*.html"
43+
],
44+
"extends": [
45+
"plugin:@angular-eslint/template/recommended"
46+
],
47+
"rules": {}
48+
}
49+
]
50+
}

angular.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,21 @@
110110
],
111111
"scripts": []
112112
}
113+
},
114+
"lint": {
115+
"builder": "@angular-eslint/builder:lint",
116+
"options": {
117+
"lintFilePatterns": [
118+
"src/**/*.ts",
119+
"src/**/*.html"
120+
]
121+
}
113122
}
114123
}
115124
}
116125
},
117-
"defaultProject": "angular-http-basic-auth-example"
118-
}
126+
"defaultProject": "angular-http-basic-auth-example",
127+
"cli": {
128+
"defaultCollection": "@angular-eslint/schematics"
129+
}
130+
}

0 commit comments

Comments
 (0)