Skip to content

Commit a933b5e

Browse files
committed
fix: Update ESLint config for TypeScript ESLint v6
- Add @typescript-eslint/recommended extension - Configure unused vars and explicit any as warnings - Add argsIgnorePattern for underscore-prefixed params - Disable explicit-any rule for library code
1 parent 6c80017 commit a933b5e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"createDefaultProgram": true
1616
},
1717
"extends": [
18+
"plugin:@typescript-eslint/recommended",
1819
"plugin:@angular-eslint/recommended",
1920
"plugin:@angular-eslint/template/process-inline-templates"
2021
],
@@ -34,7 +35,9 @@
3435
"prefix": "app",
3536
"style": "kebab-case"
3637
}
37-
]
38+
],
39+
"@typescript-eslint/no-unused-vars": "warn",
40+
"@typescript-eslint/no-explicit-any": "warn"
3841
}
3942
},
4043
{

projects/ngx-ui-loader/.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131
"prefix": "lib",
3232
"style": "camelCase"
3333
}
34-
]
34+
],
35+
"@typescript-eslint/no-unused-vars": [
36+
"warn",
37+
{
38+
"argsIgnorePattern": "^_"
39+
}
40+
],
41+
"@typescript-eslint/no-explicit-any": "off"
3542
}
3643
},
3744
{

0 commit comments

Comments
 (0)