Skip to content

Commit 8a58892

Browse files
committed
refactor(lint): switch to eslint and fix errors
1 parent b93d7a9 commit 8a58892

13 files changed

+1943
-609
lines changed

.eslintrc.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json", "e2e/tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"plugin:@angular-eslint/ng-cli-compat",
13+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
14+
"plugin:@angular-eslint/template/process-inline-templates"
15+
],
16+
"rules": {
17+
"prefer-arrow/prefer-arrow-functions": "off"
18+
}
19+
},
20+
{
21+
"files": ["*.html"],
22+
"extends": ["plugin:@angular-eslint/template/recommended"],
23+
"rules": {}
24+
}
25+
]
26+
}

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"angular.enable-strict-mode-prompt": false
2+
"angular.enable-strict-mode-prompt": false,
3+
"typescript.tsdk": "node_modules/typescript/lib"
34
}

angular.json

+16-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
"test": {
2525
"builder": "@angular-builders/jest:run",
2626
"options": {}
27+
},
28+
"lint": {
29+
"builder": "@angular-eslint/builder:lint",
30+
"options": {
31+
"lintFilePatterns": [
32+
"projects/ngx-element-boundary/**/*.ts",
33+
"projects/ngx-element-boundary/**/*.html"
34+
]
35+
}
2736
}
2837
}
2938
},
@@ -71,7 +80,9 @@
7180
"projects/demo/src/favicon.ico",
7281
"projects/demo/src/assets"
7382
],
74-
"styles": ["projects/demo/src/styles.css"],
83+
"styles": [
84+
"projects/demo/src/styles.css"
85+
],
7586
"scripts": [],
7687
"vendorChunk": true,
7788
"extractLicenses": false,
@@ -132,6 +143,9 @@
132143
}
133144
},
134145
"cli": {
135-
"analytics": false
146+
"analytics": false,
147+
"schematicCollections": [
148+
"@angular-eslint/schematics"
149+
]
136150
}
137151
}

0 commit comments

Comments
 (0)