Skip to content

Commit

Permalink
feat: ESLint added installed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegormk committed Feb 28, 2024
1 parent b7f65f7 commit c2a5ecf
Show file tree
Hide file tree
Showing 4 changed files with 1,938 additions and 84 deletions.
55 changes: 55 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@typescript-eslint/quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"object-curly-spacing": ["error", "always"],
"unused-imports/no-unused-imports": ["error"]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
20 changes: 18 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"assets": [
"src/favicon.ico",
"src/assets",
{"glob": "config.json", "input": "src/config", "output": "/"}
{
"glob": "config.json",
"input": "src/config",
"output": "/"
}
],
"styles": [
"@angular/material/prebuilt-themes/deeppurple-amber.css",
Expand Down Expand Up @@ -125,11 +129,23 @@
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"analytics": false
"analytics": false,
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit c2a5ecf

Please sign in to comment.