Skip to content

Commit 978fb72

Browse files
committed
feat: enable scope analysis rules
1 parent 9a1eeec commit 978fb72

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

index.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@ const eslintConfig = {
1717
'plugin:promise/recommended',
1818
],
1919
rules: {
20+
// enable scope analysis rules
21+
'no-unused-vars': 'off',
22+
'@typescript-eslint/no-unused-vars': 'error',
23+
'no-use-before-define': 'off',
24+
'@typescript-eslint/no-use-before-define': 'error',
25+
'no-shadow': 'off',
26+
'@typescript-eslint/no-shadow': 'error',
27+
'no-redeclare': 'off',
28+
'@typescript-eslint/no-redeclare': 'error',
29+
2030
// make typescript eslint rules even more strict
2131
'@typescript-eslint/no-explicit-any': 'error',
22-
'@typescript-eslint/no-unused-vars': 'error',
2332
'@typescript-eslint/explicit-module-boundary-types': 'error',
2433
'@typescript-eslint/no-non-null-assertion': 'error',
25-
'no-shadow': 'off',
26-
'@typescript-eslint/no-shadow': 'error',
2734

2835
'import/no-unresolved': 'off', // disable as this is handled by tsc itself
2936
'import/first': 'error',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@geprog/eslint-config",
3-
"version": "0.0.3",
3+
"version": "1.0.0",
44
"description": "ESLint config for Typescript, Vue.js and Jest",
55
"homepage": "https://geprog.com",
66
"repository": "github:geprog/eslint-config",

0 commit comments

Comments
 (0)