File tree Expand file tree Collapse file tree
eslint-config-airbnb-base Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 // disable requiring trailing commas because it might be nice to revert to
55 // being JSON at some point, and I don't want to make big changes now.
66 "comma-dangle": 0,
7+
8+ "max-len": 0,
79 },
810}
Original file line number Diff line number Diff line change 5353 },
5454 "homepage" : " https://github.com/airbnb/javascript" ,
5555 "devDependencies" : {
56- "@babel/runtime" : " ^7.12.5 " ,
56+ "@babel/runtime" : " ^7.14.6 " ,
5757 "babel-preset-airbnb" : " ^4.5.0" ,
5858 "babel-tape-runner" : " ^3.0.0" ,
5959 "eclint" : " ^2.8.1" ,
6060 "eslint" : " ^5.16.0 || ^6.8.0 || ^7.2.0" ,
6161 "eslint-find-rules" : " ^3.6.1" ,
62- "eslint-plugin-import" : " ^2.22.1 " ,
62+ "eslint-plugin-import" : " ^2.23.4 " ,
6363 "in-publish" : " ^2.0.1" ,
6464 "safe-publish-latest" : " ^1.1.4" ,
6565 "tape" : " ^5.2.2"
6666 },
6767 "peerDependencies" : {
6868 "eslint" : " ^5.16.0 || ^6.8.0 || ^7.2.0" ,
69- "eslint-plugin-import" : " ^2.22.1 "
69+ "eslint-plugin-import" : " ^2.23.4 "
7070 },
7171 "engines" : {
7272 "node" : " >= 6"
Original file line number Diff line number Diff line change @@ -259,5 +259,17 @@ module.exports = {
259259 missingExports : true ,
260260 unusedExports : true ,
261261 } ] ,
262+
263+ // Reports the use of import declarations with CommonJS exports in any module except for the main module.
264+ // https://github.com/benmosher/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-import-module-exports.md
265+ // TODO: enable, semver-major
266+ 'import/no-import-module-exports' : [ 'off' , {
267+ exceptions : [ ] ,
268+ } ] ,
269+
270+ // Use this rule to prevent importing packages through relative paths.
271+ // https://github.com/benmosher/eslint-plugin-import/blob/1012eb951767279ce3b540a4ec4f29236104bb5b/docs/rules/no-relative-packages.md
272+ // TODO: enable, semver-major
273+ 'import/no-relative-packages' : 'off' ,
262274 } ,
263275} ;
Original file line number Diff line number Diff line change 5959 "object.entries" : " ^1.1.4"
6060 },
6161 "devDependencies" : {
62- "@babel/runtime" : " ^7.13.10 " ,
62+ "@babel/runtime" : " ^7.14.6 " ,
6363 "babel-preset-airbnb" : " ^4.5.0" ,
6464 "babel-tape-runner" : " ^3.0.0" ,
6565 "eclint" : " ^2.8.1" ,
6666 "eslint" : " ^5.16.0 || ^6.8.0 || ^7.2.0" ,
6767 "eslint-find-rules" : " ^3.6.1" ,
68- "eslint-plugin-import" : " ^2.22.1 " ,
68+ "eslint-plugin-import" : " ^2.23.4 " ,
6969 "eslint-plugin-jsx-a11y" : " ^6.4.1" ,
70- "eslint-plugin-react" : " ^7.23.1 " ,
70+ "eslint-plugin-react" : " ^7.24.0 " ,
7171 "eslint-plugin-react-hooks" : " ^4.0.1 || ^3 || ^2.3.0 || ^1.7.0" ,
7272 "in-publish" : " ^2.0.1" ,
7373 "react" : " >= 0.13.0" ,
You can’t perform that action at this time.
0 commit comments