File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,20 @@ const eslintConfig = {
17
17
'plugin:promise/recommended' ,
18
18
] ,
19
19
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
+
20
30
// make typescript eslint rules even more strict
21
31
'@typescript-eslint/no-explicit-any' : 'error' ,
22
- '@typescript-eslint/no-unused-vars' : 'error' ,
23
32
'@typescript-eslint/explicit-module-boundary-types' : 'error' ,
24
33
'@typescript-eslint/no-non-null-assertion' : 'error' ,
25
- 'no-shadow' : 'off' ,
26
- '@typescript-eslint/no-shadow' : 'error' ,
27
34
28
35
'import/no-unresolved' : 'off' , // disable as this is handled by tsc itself
29
36
'import/first' : 'error' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @geprog/eslint-config" ,
3
- "version" : " 0 .0.3 " ,
3
+ "version" : " 1 .0.0 " ,
4
4
"description" : " ESLint config for Typescript, Vue.js and Jest" ,
5
5
"homepage" : " https://geprog.com" ,
6
6
"repository" : " github:geprog/eslint-config" ,
You can’t perform that action at this time.
0 commit comments