Skip to content

Commit

Permalink
Merge pull request #63 from pkorchak/tslint-to-eslint
Browse files Browse the repository at this point in the history
chore: migrate from TSLint to ESLint
  • Loading branch information
pkorchak committed May 11, 2023
2 parents 7180948 + 75bf945 commit 4433274
Show file tree
Hide file tree
Showing 16 changed files with 2,938 additions and 836 deletions.
52 changes: 52 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"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",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "app",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
17 changes: 7 additions & 10 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"cypress/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
Expand Down Expand Up @@ -159,6 +155,7 @@
},
"defaultProject": "form-builder-demo",
"cli": {
"analytics": false
"analytics": false,
"defaultCollection": "@angular-eslint/schematics"
}
}
}
Loading

0 comments on commit 4433274

Please sign in to comment.