File tree Expand file tree Collapse file tree 2 files changed +33
-80
lines changed Expand file tree Collapse file tree 2 files changed +33
-80
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- ' env' : {
3
- ' browser' : true ,
4
- ' commonjs' : true ,
5
- ' es2021' : true ,
6
- ' node' : true
2
+ env : {
3
+ browser : true ,
4
+ commonjs : true ,
5
+ es2021 : true ,
6
+ node : true ,
7
7
} ,
8
- 'extends' : [
9
- 'eslint:recommended' ,
10
- 'plugin:react/recommended'
11
- ] ,
12
- 'parserOptions' : {
13
- 'ecmaFeatures' : {
14
- 'jsx' : true ,
8
+ extends : [ 'eslint:recommended' , 'plugin:react/recommended' ] ,
9
+ parserOptions : {
10
+ ecmaFeatures : {
11
+ jsx : true ,
15
12
} ,
16
- ' ecmaVersion' : 12 ,
17
- ' sourceType' : 'module'
13
+ ecmaVersion : 12 ,
14
+ sourceType : 'module' ,
18
15
} ,
19
- 'plugins' : [
20
- 'react'
21
- ] ,
22
- 'rules' : {
23
- 'indent' : [ 'warn' , 2 ] ,
16
+ plugins : [ 'react' ] ,
17
+ rules : {
18
+ indent : [ 'warn' , 2 ] ,
24
19
'no-unused-vars' : [ 'off' , { vars : 'local' } ] ,
25
20
'prefer-const' : 'warn' ,
26
21
quotes : [ 'warn' , 'single' ] ,
@@ -30,20 +25,25 @@ module.exports = {
30
25
'no-restricted-syntax' : [
31
26
'error' ,
32
27
{
33
- 'selector' : 'CallExpression[callee.object.name=\'console\'][callee.property.name!=/^(log|warn|error|info|trace)$/]' ,
34
- 'message' : 'Unexpected property on console object was called'
35
- }
28
+ selector :
29
+ "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]" ,
30
+ message : 'Unexpected property on console object was called' ,
31
+ } ,
36
32
] ,
37
- 'spaced-comment' : [ 'error' , 'always' , {
38
- 'line' : {
39
- 'markers' : [ '/' ] ,
40
- 'exceptions' : [ '-' , '+' ]
33
+ 'spaced-comment' : [
34
+ 'error' ,
35
+ 'always' ,
36
+ {
37
+ line : {
38
+ markers : [ '/' ] ,
39
+ exceptions : [ '-' , '+' ] ,
40
+ } ,
41
+ block : {
42
+ markers : [ '!' ] ,
43
+ exceptions : [ '*' ] ,
44
+ balanced : true ,
45
+ } ,
41
46
} ,
42
- 'block' : {
43
- 'markers' : [ '!' ] ,
44
- 'exceptions' : [ '*' ] ,
45
- 'balanced' : true
46
- }
47
- } ]
48
- }
47
+ ] ,
48
+ } ,
49
49
} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments