File tree 3 files changed +31
-22
lines changed
3 files changed +31
-22
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- ' extends' : [
2
+ extends : [
3
3
'eslint-config-smartthings/rules/best-practices' ,
4
4
'eslint-config-smartthings/rules/errors' ,
5
5
'eslint-config-smartthings/rules/node' ,
6
6
'eslint-config-smartthings/rules/strict' ,
7
7
'eslint-config-smartthings/rules/style' ,
8
8
'eslint-config-smartthings/rules/variables'
9
9
] ,
10
- ' env' : {
11
- ' browser' : true ,
12
- ' node' : true ,
13
- ' amd' : false ,
14
- ' mocha' : false ,
15
- ' jasmine' : false
10
+ env : {
11
+ browser : true ,
12
+ node : true ,
13
+ amd : false ,
14
+ mocha : false ,
15
+ jasmine : false
16
16
} ,
17
- 'globals' : { } ,
18
- 'rules' : { }
17
+ parserOptions : {
18
+ ecmaVersion : 2018 ,
19
+ ecmaFeatures : {
20
+ jsx : true ,
21
+ modules : true
22
+ }
23
+ } ,
24
+ globals : { } ,
25
+ rules : { }
19
26
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-config-smartthings" ,
3
- "version" : " 3.0.1 " ,
3
+ "version" : " 3.1.0 " ,
4
4
"description" : " SmartThings's ESLint config" ,
5
5
"main" : " index.js" ,
6
6
"repository" : {
23
23
{
24
24
"name" : " Adan Perez @adanperez" ,
25
25
"url" : " http://github.com/adanperez"
26
+ },
27
+ {
28
+ "name" : " Nayeemuddin Khan @nayeemuddin.khan" ,
29
+ "url" : " https://github.com/Nayeemuddin-khan"
26
30
}
27
31
],
28
32
"license" : " Apache-2.0" ,
32
36
},
33
37
"homepage" : " https://github.com/SmartThingsOSS/eslint-config-smartthings" ,
34
38
"peerDependencies" : {
35
- "eslint" : " ^4.0 .0" ,
36
- "eslint-plugin-react" : " ^7.0 .0"
39
+ "eslint" : " ^5.1 .0" ,
40
+ "eslint-plugin-react" : " ^7.7 .0"
37
41
}
38
42
}
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- ' env' : {
3
- ' es6' : true
2
+ env : {
3
+ es6 : true
4
4
} ,
5
- 'parserOptions' : {
6
- 'ecmaVersion' : 7 ,
7
- 'sourceType' : 'module' ,
8
- 'ecmaFeatures' : {
9
- 'experimentalObjectRestSpread' : true
10
- }
5
+ parserOptions : {
6
+ ecmaVersion : 2018 ,
7
+ sourceType : 'module' ,
8
+ ecmaFeatures : { }
11
9
} ,
12
- ' rules' : {
10
+ rules : {
13
11
// require braces around arrow function bodies
14
12
'arrow-body-style' : 0 ,
15
13
// require parens in arrow function arguments
@@ -47,7 +45,7 @@ module.exports = {
47
45
// require method and property shorthand syntax for object literals
48
46
'object-shorthand' : 0 ,
49
47
// require arrow functions as callbacks
50
- 'prefer-arrow-callback' : [ 2 , { ' allowNamedFunctions' : true } ] ,
48
+ 'prefer-arrow-callback' : [ 2 , { allowNamedFunctions : true } ] ,
51
49
// suggest using of const declaration for variables that are never modified after declared
52
50
'prefer-const' : 2 ,
53
51
// require destructuring from arrays and/or objects
You can’t perform that action at this time.
0 commit comments