File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
parser : 'babel-eslint' ,
3
- extends : [ 'eslint:recommended' , 'prettier' ] ,
4
- plugins : [ 'prettier' ] ,
3
+ extends : [ 'eslint:recommended' , 'plugin:prettier/recommended' ] ,
5
4
parserOptions : {
6
5
ecmaVersion : 2020 ,
7
- sourceType : " module"
6
+ sourceType : ' module' ,
8
7
} ,
9
8
rules : {
10
9
strict : [ 'error' , 'never' ] ,
11
10
'no-shadow' : 'error' ,
12
11
'no-var' : 'error' ,
13
12
'prefer-const' : 'error' ,
14
- 'prettier/prettier' : 'error' ,
15
13
} ,
16
14
env : {
17
15
node : true ,
@@ -23,6 +21,16 @@ module.exports = {
23
21
$Exact : true ,
24
22
} ,
25
23
overrides : [
24
+ {
25
+ files : [ '*rc.js' , '*.config.js' ] ,
26
+ parserOptions : {
27
+ ecmaVersion : 2019 ,
28
+ sourceType : 'script' ,
29
+ } ,
30
+ rules : {
31
+ strict : [ 'error' , 'global' ] ,
32
+ } ,
33
+ } ,
26
34
{
27
35
files : '@(src|bin)/**/__tests__/*-test.js' ,
28
36
env : { jest : true } ,
Original file line number Diff line number Diff line change 4
4
5
5
tasks :
6
6
- init : yarn install && yarn run build
7
- command : yarn run start
8
7
9
8
You can’t perform that action at this time.
0 commit comments