Skip to content

Commit

Permalink
[eslint config] [*] [deps] update eslint-plugin-import, use valid `…
Browse files Browse the repository at this point in the history
…import/no-cycle` `maxDepth` option
  • Loading branch information
ljharb committed Jun 23, 2020
1 parent 5124de2 commit c5bee75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config-airbnb-base/package.json
Expand Up @@ -59,14 +59,14 @@
"eclint": "^2.8.1",
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
"eslint-find-rules": "^3.5.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-import": "^2.22.0",
"in-publish": "^2.0.1",
"safe-publish-latest": "^1.1.4",
"tape": "^5.0.1"
},
"peerDependencies": {
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
"eslint-plugin-import": "^2.21.2"
"eslint-plugin-import": "^2.22.0"
},
"engines": {
"node": ">= 6"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-airbnb-base/rules/imports.js
Expand Up @@ -233,7 +233,7 @@ module.exports = {

// Forbid cyclical dependencies between modules
// https://github.com/benmosher/eslint-plugin-import/blob/d81f48a2506182738409805f5272eff4d77c9348/docs/rules/no-cycle.md
'import/no-cycle': ['error', { maxDepth: Infinity }],
'import/no-cycle': ['error', { maxDepth: '∞' }],

// Ensures that there are no useless path segments
// https://github.com/benmosher/eslint-plugin-import/blob/ebafcbf59ec9f653b2ac2a0156ca3bcba0a7cf57/docs/rules/no-useless-path-segments.md
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-airbnb/package.json
Expand Up @@ -65,7 +65,7 @@
"eclint": "^2.8.1",
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
"eslint-find-rules": "^3.5.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0",
Expand All @@ -76,7 +76,7 @@
},
"peerDependencies": {
"eslint": "^5.16.0 || ^6.8.0 || ^7.2.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0"
Expand Down

0 comments on commit c5bee75

Please sign in to comment.