Skip to content

Commit

Permalink
refactor: fix lint error with component name prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rars committed Mar 14, 2024
1 parent 6826e7e commit f7b7c1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"projectType": "library",
"root": "projects/ngx-diff",
"sourceRoot": "projects/ngx-diff/src",
"prefix": "lib",
"prefix": "ngx",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
Expand Down
26 changes: 7 additions & 19 deletions projects/ngx-diff/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
{
"extends": "../../.eslintrc.json",
"ignorePatterns": [
"!**/*"
],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"project": [
"projects/ngx-diff/tsconfig.lib.json",
"projects/ngx-diff/tsconfig.spec.json"
],
"project": ["projects/ngx-diff/tsconfig.lib.json", "projects/ngx-diff/tsconfig.spec.json"],
"createDefaultProgram": true
},
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lib",
"prefix": "ngx",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lib",
"prefix": "ngx",
"style": "camelCase"
}
],
Expand All @@ -38,17 +31,12 @@
"accessibility": "explicit"
}
],
"arrow-parens": [
"off",
"always"
],
"arrow-parens": ["off", "always"],
"import/order": "off"
}
},
{
"files": [
"*.html"
],
"files": ["*.html"],
"rules": {}
}
]
Expand Down

0 comments on commit f7b7c1d

Please sign in to comment.