Skip to content

Commit

Permalink
馃摝 NEW: migrate to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
antoantonyk committed Apr 23, 2022
1 parent a0935ad commit 39e96ec
Show file tree
Hide file tree
Showing 15 changed files with 1,924 additions and 499 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"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/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": {}
}
]
}
23 changes: 22 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@
"devServerTarget": "password-strength-meter-showcase:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/password-strength-meter-showcase/**/*.ts",
"projects/password-strength-meter-showcase/**/*.html"
]
}
}
}
},
Expand Down Expand Up @@ -138,6 +147,15 @@
"karmaConfig": "projects/password-strength-meter/karma.conf.js",
"codeCoverage": true
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/password-strength-meter/**/*.ts",
"projects/password-strength-meter/**/*.html"
]
}
}
}
}
Expand All @@ -147,5 +165,8 @@
"@schematics/angular:component": {
"style": "scss"
}
},
"cli": {
"defaultCollection": "@angular-eslint/schematics"
}
}
}

0 comments on commit 39e96ec

Please sign in to comment.