File tree 2 files changed +42
-14
lines changed
2 files changed +42
-14
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- "extends" : "airbnb-base" ,
3
- "plugins" : [
4
- "import"
2
+ env : {
3
+ browser : true ,
4
+ es6 : true ,
5
+ jest : true ,
6
+ } ,
7
+ extends : [
8
+ 'plugin:@typescript-eslint/recommended' ,
9
+ 'airbnb-base'
5
10
] ,
6
- "parserOptions" : {
7
- "ecmaFeatures" : {
8
- "jsx" : true
9
- }
11
+ plugins : [ '@typescript-eslint' ] ,
12
+ parser : '@typescript-eslint/parser' ,
13
+ globals : {
14
+ Atomics : 'readonly' ,
15
+ SharedArrayBuffer : 'readonly' ,
16
+ } ,
17
+ parserOptions : {
18
+ ecmaVersion : 2018 ,
19
+ sourceType : 'module' ,
10
20
} ,
11
- "rules" : {
12
- // disabled until babel rewrite
13
- "strict" : 1 ,
14
- "no-param-reassign" : 1 ,
15
- "max-len" : 1 ,
16
- "no-shadow" : 1 ,
21
+ settings : {
22
+ 'import/resolver' : {
23
+ node : {
24
+ extensions : [ '.js' , '.ts' ] ,
25
+ } ,
26
+ } ,
27
+ } ,
28
+ overrides : [
29
+ {
30
+ files : [ '*.ts' , '*.tsx' ] ,
31
+ rules : {
32
+ 'no-dupe-class-members' : 'off' ,
33
+ } ,
34
+ } ,
35
+ ] ,
36
+ rules : {
37
+ '@typescript-eslint/explicit-function-return-type' : [ 'warn' , {
38
+ allowTypedFunctionExpressions : true ,
39
+ allowExpressions : true ,
40
+ } ] ,
41
+ 'import/extensions' : [ 'error' , 'ignorePackages' , {
42
+ js : 'never' ,
43
+ ts : 'never' ,
44
+ } ] ,
17
45
}
18
46
} ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " nyc ava -s" ,
8
8
"build" : " tsc && babel dest -d dest" ,
9
- "lint" : " eslint lib index.js test" ,
9
+ "lint" : " eslint lib test" ,
10
10
"fix" : " npm run lint -- --fix" ,
11
11
"prepublish" : " npm run build" ,
12
12
"coveralls" : " nyc report --reporter=text-lcov | coveralls"
You can’t perform that action at this time.
0 commit comments