Skip to content

Commit

Permalink
chore(config): tslint to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Maple13 authored and pubuzhixing8 committed Sep 27, 2021
1 parent 3d3d741 commit 88f9bc1
Show file tree
Hide file tree
Showing 7 changed files with 1,543 additions and 769 deletions.
48 changes: 48 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"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",
{
"prefix": "slate",
"style": "camelCase",
"type": "attribute"
}
],
"@angular-eslint/component-selector": 0,
"@angular-eslint/no-empty-lifecycle-method": 0,
"@angular-eslint/no-host-metadata-property": 0,
"@angular-eslint/no-output-on-prefix": 0,
"@angular-eslint/no-conflicting-lifecycle": 0
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
32 changes: 14 additions & 18 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"demo/**/*.ts",
"demo/**/*.html"
]
}
},
Expand Down Expand Up @@ -173,18 +169,17 @@
"tsConfig": "packages/tsconfig.spec.json",
"karmaConfig": "packages/karma.conf.js",
"codeCoverage": true,
"codeCoverageExclude": ["packages/src/testing/**/*"]
"codeCoverageExclude": [
"packages/src/testing/**/*"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"packages/tsconfig.lib.json",
"packages/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"packages/**/*.ts",
"packages/**/*.html"
]
}
}
Expand All @@ -193,6 +188,7 @@
},
"defaultProject": "demo",
"cli": {
"analytics": "8db354c6-b560-4f8e-9ad8-56c64f03d2c8"
"analytics": "8db354c6-b560-4f8e-9ad8-56c64f03d2c8",
"defaultCollection": "@angular-eslint/schematics"
}
}
}
Loading

0 comments on commit 88f9bc1

Please sign in to comment.