This repository was archived by the owner on May 29, 2023. It is now read-only.
File tree 3 files changed +28
-8
lines changed
eslint-config-airbnb-base
3 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 51
51
"babel-preset-airbnb" : " ^2.4.0" ,
52
52
"babel-tape-runner" : " ^2.0.1" ,
53
53
"editorconfig-tools" : " ^0.1.1" ,
54
- "eslint" : " ^4.18.0 " ,
54
+ "eslint" : " ^4.18.1 " ,
55
55
"eslint-find-rules" : " ^3.2.0" ,
56
- "eslint-plugin-import" : " ^2.8 .0" ,
56
+ "eslint-plugin-import" : " ^2.9 .0" ,
57
57
"in-publish" : " ^2.0.0" ,
58
58
"safe-publish-latest" : " ^1.1.1" ,
59
59
"tape" : " ^4.9.0"
60
60
},
61
61
"peerDependencies" : {
62
- "eslint" : " ^4.16.0 " ,
63
- "eslint-plugin-import" : " ^2.8 .0"
62
+ "eslint" : " ^4.18.1 " ,
63
+ "eslint-plugin-import" : " ^2.9 .0"
64
64
},
65
65
"engines" : {
66
66
"node" : " >= 4"
Original file line number Diff line number Diff line change @@ -211,5 +211,25 @@ module.exports = {
211
211
// https://github.com/benmosher/eslint-plugin-import/blob/98acd6afd04dcb6920b81330114e146dc8532ea4/docs/rules/exports-last.md
212
212
// TODO: enable?
213
213
'import/exports-last' : 'off' ,
214
+
215
+ // Reports when named exports are not grouped together in a single export declaration
216
+ // or when multiple assignments to CommonJS module.exports or exports object are present
217
+ // in a single file.
218
+ // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/group-exports.md
219
+ 'import/group-exports' : 'off' ,
220
+
221
+ // forbid default exports. this is a terrible rule, do not use it.
222
+ // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md
223
+ 'import/no-default-export' : 'off' ,
224
+
225
+ // Forbid a module from importing itself
226
+ // https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-self-import.md
227
+ // TODO: enable
228
+ 'import/no-self-import' : 'off' ,
229
+
230
+ // Ensures that there are no useless path segments
231
+ // https://github.com/benmosher/eslint-plugin-import/issues/1032
232
+ // TODO: enable
233
+ 'import/no-useless-path-segments' : 'off' ,
214
234
} ,
215
235
} ;
Original file line number Diff line number Diff line change 54
54
"babel-preset-airbnb" : " ^2.4.0" ,
55
55
"babel-tape-runner" : " ^2.0.1" ,
56
56
"editorconfig-tools" : " ^0.1.1" ,
57
- "eslint" : " ^4.18.0 " ,
57
+ "eslint" : " ^4.18.1 " ,
58
58
"eslint-find-rules" : " ^3.2.0" ,
59
- "eslint-plugin-import" : " ^2.8 .0" ,
59
+ "eslint-plugin-import" : " ^2.9 .0" ,
60
60
"eslint-plugin-jsx-a11y" : " ^6.0.3" ,
61
61
"eslint-plugin-react" : " ^7.7.0" ,
62
62
"in-publish" : " ^2.0.0" ,
65
65
"tape" : " ^4.9.0"
66
66
},
67
67
"peerDependencies" : {
68
- "eslint" : " ^4.18.0 " ,
69
- "eslint-plugin-import" : " ^2.8 .0" ,
68
+ "eslint" : " ^4.18.1 " ,
69
+ "eslint-plugin-import" : " ^2.9 .0" ,
70
70
"eslint-plugin-jsx-a11y" : " ^6.0.3" ,
71
71
"eslint-plugin-react" : " ^7.7.0"
72
72
},
You can’t perform that action at this time.
0 commit comments