1
1
module . exports = {
2
+ root : true ,
2
3
env : {
3
4
node : true ,
4
5
jest : true ,
5
6
} ,
6
7
parser : '@typescript-eslint/parser' ,
7
8
parserOptions : {
8
- project : './tsconfig.build.json' ,
9
+ sourceType : 'module' ,
10
+ project : [ './packages/*/tsconfig.json' , './examples/*/tsconfig.json' ] ,
11
+ tsconfigRootDir : __dirname ,
9
12
} ,
10
13
plugins : [ '@typescript-eslint' , 'prettier' , 'import' , 'jest' , 'eslint-plugin-tsdoc' ] ,
11
14
extends : [
@@ -22,8 +25,6 @@ module.exports = {
22
25
rules : {
23
26
'prettier/prettier' : 'error' ,
24
27
'tsdoc/syntax' : 'warn' ,
25
- // todo remove this when upgrading airbnb-typescript
26
- '@typescript-eslint/camelcase' : 'off' ,
27
28
// never allow default export
28
29
'import/prefer-default-export' : 'off' ,
29
30
// never allow default export
@@ -39,5 +40,20 @@ module.exports = {
39
40
'@typescript-eslint/ban-ts-comment' : 'off' ,
40
41
} ,
41
42
} ,
43
+ {
44
+ files : [ '*.js' ] ,
45
+ parser : '' ,
46
+ parserOptions : { project : './tsconfig.build.json' } ,
47
+ rules : {
48
+ 'no-console' : 'off' ,
49
+ 'prettier/prettier' : 'error' ,
50
+ '@typescript-eslint/no-unsafe-assignment' : 'off' ,
51
+ '@typescript-eslint/no-unsafe-member-access' : 'off' ,
52
+ '@typescript-eslint/restrict-template-expressions' : 'off' ,
53
+ '@typescript-eslint/no-unsafe-call' : 'off' ,
54
+ '@typescript-eslint/no-unsafe-return' : 'off' ,
55
+ '@typescript-eslint/no-var-requires' : 'off' ,
56
+ } ,
57
+ } ,
42
58
] ,
43
59
} ;
0 commit comments