File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ module.exports = {
5
5
node : false
6
6
} ,
7
7
extends : [ "airbnb" ] ,
8
- parser : "babel- eslint" ,
9
- plugins : [ "babel" ] ,
8
+ parser : "@ babel/ eslint-parser " ,
9
+ plugins : [ "@ babel" ] ,
10
10
rules : {
11
+ "@babel/object-curly-spacing" : "error" , // Replace non-babel version
11
12
"arrow-parens" : [ "error" , "always" ] , // Consistency
12
- "babel/object-curly-spacing" : "error" , // Replace non-babel version
13
13
"class-methods-use-this" : "off" , // Allows methods to be overridden
14
14
"comma-dangle" : [ "error" , "never" ] , // Unnecessary
15
15
"consistent-return" : "off" , // Makes it hard to return early for conditionals
@@ -22,8 +22,8 @@ module.exports = {
22
22
allowChildren : false ,
23
23
} ] , // Unnecessary to have nesting for both
24
24
"keyword-spacing" : [ "error" , {
25
- before : false ,
26
25
after : false ,
26
+ before : false ,
27
27
overrides : {
28
28
as : { before : true , after : true } ,
29
29
case : { before : true , after : true } ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-config-traitify" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 0.2 .0" ,
4
4
"description" : " Traitify's base ESLint config" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
25
25
},
26
26
"homepage" : " https://github.com/traitify/eslint-config-traitify#readme" ,
27
27
"dependencies" : {
28
- "babel- eslint" : " 10.x || 11 .x" ,
29
- "eslint-config-airbnb" : " 17.x || 18.x" ,
28
+ "@ babel/ eslint-parser " : " 7 .x" ,
29
+ "eslint-config-airbnb" : " 18.x" ,
30
30
"eslint-import-resolver-webpack" : " 0.x"
31
31
},
32
32
"peerDependencies" : {
33
- "eslint" : " 5.x || 6 .x" ,
34
- "eslint-plugin-babel " : " 5 .x"
33
+ "@babel/ eslint-plugin " : " 7 .x" ,
34
+ "eslint" : " 7 .x"
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments