File tree 5 files changed +29
-4
lines changed
eslint-config-airbnb-base 5 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 57
57
"babel-preset-airbnb" : " ^4.1.0" ,
58
58
"babel-tape-runner" : " ^3.0.0" ,
59
59
"eclint" : " ^2.8.1" ,
60
- "eslint" : " ^5.16.0 || ^6.1.0 " ,
60
+ "eslint" : " ^5.16.0 || ^6.7.2 " ,
61
61
"eslint-find-rules" : " ^3.4.0" ,
62
62
"eslint-plugin-import" : " ^2.18.2" ,
63
63
"in-publish" : " ^2.0.0" ,
64
64
"safe-publish-latest" : " ^1.1.3" ,
65
65
"tape" : " ^4.11.0"
66
66
},
67
67
"peerDependencies" : {
68
- "eslint" : " ^5.16.0 || ^6.1.0 " ,
68
+ "eslint" : " ^5.16.0 || ^6.7.2 " ,
69
69
"eslint-plugin-import" : " ^2.18.2"
70
70
},
71
71
"engines" : {
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ module.exports = {
43
43
// https://eslint.org/docs/rules/eqeqeq
44
44
eqeqeq : [ 'error' , 'always' , { null : 'ignore' } ] ,
45
45
46
+ // Require grouped accessor pairs in object literals and classes
47
+ // https://eslint.org/docs/rules/grouped-accessor-pairs
48
+ // TODO: enable in next major, altho the guide forbids getters/setters anyways
49
+ 'grouped-accessor-pairs' : 'off' ,
50
+
46
51
// make sure for-in loops have an if statement
47
52
'guard-for-in' : 'error' ,
48
53
@@ -60,6 +65,11 @@ module.exports = {
60
65
// https://eslint.org/docs/rules/no-case-declarations.html
61
66
'no-case-declarations' : 'error' ,
62
67
68
+ // Disallow returning value in constructor
69
+ // https://eslint.org/docs/rules/no-constructor-return
70
+ // TODO: enable, semver-major
71
+ 'no-constructor-return' : 'off' ,
72
+
63
73
// disallow division operators explicitly at beginning of regular expression
64
74
// https://eslint.org/docs/rules/no-div-regex
65
75
'no-div-regex' : 'off' ,
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ module.exports = {
38
38
// disallow duplicate arguments in functions
39
39
'no-dupe-args' : 'error' ,
40
40
41
+ // Disallow duplicate conditions in if-else-if chains
42
+ // https://eslint.org/docs/rules/no-dupe-else-if
43
+ // TODO: enable, semver-major
44
+ 'no-dupe-else-if' : 'off' ,
45
+
41
46
// disallow duplicate keys when creating object literals
42
47
'no-dupe-keys' : 'error' ,
43
48
@@ -100,6 +105,11 @@ module.exports = {
100
105
// disallow multiple spaces in a regular expression literal
101
106
'no-regex-spaces' : 'error' ,
102
107
108
+ // Disallow returning values from setters
109
+ // https://eslint.org/docs/rules/no-setter-return
110
+ // TODO: enable, semver-major (altho the guide forbids getters/setters already)
111
+ 'no-setter-return' : 'off' ,
112
+
103
113
// disallow sparse arrays
104
114
'no-sparse-arrays' : 'error' ,
105
115
Original file line number Diff line number Diff line change @@ -434,6 +434,11 @@ module.exports = {
434
434
// https://eslint.org/docs/rules/padding-line-between-statements
435
435
'padding-line-between-statements' : 'off' ,
436
436
437
+ // Disallow the use of Math.pow in favor of the ** operator
438
+ // https://eslint.org/docs/rules/prefer-exponentiation-operator
439
+ // TODO: enable, semver-major when eslint 5 is dropped
440
+ 'prefer-exponentiation-operator' : 'off' ,
441
+
437
442
// Prefer use of an object spread over Object.assign
438
443
// https://eslint.org/docs/rules/prefer-object-spread
439
444
'prefer-object-spread' : 'error' ,
Original file line number Diff line number Diff line change 63
63
"babel-preset-airbnb" : " ^4.1.0" ,
64
64
"babel-tape-runner" : " ^3.0.0" ,
65
65
"eclint" : " ^2.8.1" ,
66
- "eslint" : " ^5.16.0 || ^6.1.0 " ,
66
+ "eslint" : " ^5.16.0 || ^6.7.2 " ,
67
67
"eslint-find-rules" : " ^3.4.0" ,
68
68
"eslint-plugin-import" : " ^2.18.2" ,
69
69
"eslint-plugin-jsx-a11y" : " ^6.2.3" ,
75
75
"tape" : " ^4.11.0"
76
76
},
77
77
"peerDependencies" : {
78
- "eslint" : " ^5.16.0 || ^6.1.0 " ,
78
+ "eslint" : " ^5.16.0 || ^6.7.2 " ,
79
79
"eslint-plugin-import" : " ^2.18.2" ,
80
80
"eslint-plugin-jsx-a11y" : " ^6.2.3" ,
81
81
"eslint-plugin-react" : " ^7.15.1" ,
You can’t perform that action at this time.
0 commit comments