Skip to content

Commit

Permalink
fix: add eslint to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
denStrigo committed Feb 15, 2023
1 parent 594347d commit 94c12e9
Show file tree
Hide file tree
Showing 4 changed files with 5,725 additions and 9,880 deletions.
19 changes: 5 additions & 14 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,12 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"docs/tsconfig.spec.json",
"docs/tsconfig.app.json"
],
"exclude": []
"lintFilePatterns": [
"docs/**/*.ts",
"docs/**/*.html"
]
}
}
}
Expand All @@ -296,14 +295,6 @@
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "docs:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"],
"exclude": []
}
}
}
}
Expand Down
42 changes: 42 additions & 0 deletions docs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"extends": "../.eslintrc.json",
"ignorePatterns": [
"!**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"docs/tsconfig.app.json",
"docs/tsconfig.spec.json"
],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"rules": {}
}
]
}
Loading

0 comments on commit 94c12e9

Please sign in to comment.