Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: import-js/eslint-plugin-import
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 998c3000c70b8571aa27cfe1ec30cfff0efc9795
Choose a base ref
...
head repository: import-js/eslint-plugin-import
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 202e5e02db46dfda897ec6952d0a73fea1f23bab
Choose a head ref

Commits on Oct 25, 2018

  1. [New] named: add commonjs option

    vikr01 authored and ljharb committed Oct 25, 2018
    Copy the full SHA
    54d86c8 View commit details

Commits on Oct 26, 2018

  1. [New] no-dynamic-require: add option esmodule

    See #700.
    vikr01 authored and ljharb committed Oct 26, 2018
    Copy the full SHA
    7163824 View commit details

Commits on Oct 24, 2019

  1. [Tests] no-cycle: Restructure test files

    soryy708 authored and ljharb committed Oct 24, 2019
    Copy the full SHA
    429f3f6 View commit details

Commits on Jul 6, 2020

  1. Copy the full SHA
    b743a65 View commit details

Commits on Apr 13, 2021

  1. Copy the full SHA
    7aea664 View commit details

Commits on Jun 2, 2021

  1. [New] no-namespace: Add ignore option

    Closes #1916.
    Closes #1903.
    Arkadii Berezkin authored and ljharb committed Jun 2, 2021
    1
    Copy the full SHA
    bba59c4 View commit details

Commits on Jun 4, 2021

  1. Copy the full SHA
    4079482 View commit details

Commits on Jun 14, 2021

  1. [Fix] no-extraneous-dependencies: add ESM intermediate package.json…

    … support
    
    Fixes #2120.
    jeromeh authored and ljharb committed Jun 14, 2021
    Copy the full SHA
    b3d8c0c View commit details

Commits on Jun 25, 2021

  1. Copy the full SHA
    1012eb9 View commit details

Commits on Jul 6, 2021

  1. [Fix] extensions/importType: fix isScoped treating @/abc as scope…

    …d module
    
    Fixes #2145
    Rafael Perello authored and ljharb committed Jul 6, 2021
    Copy the full SHA
    00d7bc8 View commit details

Commits on Jul 19, 2021

  1. Copy the full SHA
    95e6011 View commit details

Commits on Jul 21, 2021

  1. Copy the full SHA
    bfab4cc View commit details

Commits on Jul 22, 2021

  1. [Docs] order: improve the documentation for the `pathGroupsExcluded…

    …ImportTypes` option
    liby authored and ljharb committed Jul 22, 2021
    Copy the full SHA
    b236748 View commit details

Commits on Jul 26, 2021

  1. [Docs] named: update docs with module info and deprecation notice…

    … for `jsnext:main`
    MustafaHaddara authored and ljharb committed Jul 26, 2021
    Copy the full SHA
    9521284 View commit details
  2. Copy the full SHA
    96e4332 View commit details

Commits on Jul 27, 2021

  1. Copy the full SHA
    5478a40 View commit details
  2. Copy the full SHA
    8dd13e8 View commit details

Commits on Aug 1, 2021

  1. [Tests] eslint v7.32 added a new fatalErrorCount property to `cli.e…

    …xecuteOnFiles` result
    ljharb committed Aug 1, 2021
    Copy the full SHA
    e20db4e View commit details

Commits on Aug 3, 2021

  1. Copy the full SHA
    c8876b1 View commit details
  2. [eslint] fix eslint failures

    ljharb committed Aug 3, 2021
    Copy the full SHA
    3761435 View commit details

Commits on Aug 5, 2021

  1. Copy the full SHA
    7626a14 View commit details

Commits on Aug 7, 2021

  1. Copy the full SHA
    32bf645 View commit details

Commits on Aug 8, 2021

  1. [meta] update repo URLs

    ljharb committed Aug 8, 2021
    Copy the full SHA
    794e869 View commit details
  2. [resolvers/node] v0.3.5

    ljharb committed Aug 8, 2021
    Copy the full SHA
    74fa6c9 View commit details
  3. utils: v2.6.2

    ljharb committed Aug 8, 2021
    Copy the full SHA
    546f87f View commit details
  4. Bump to v2.24.0

    ljharb committed Aug 8, 2021
    Copy the full SHA
    202e5e0 View commit details
Showing with 1,612 additions and 794 deletions.
  1. +3 −3 .babelrc
  2. +1 −1 .eslintrc
  3. +1 −1 .github/workflows/node-4+.yml
  4. +1 −1 .github/workflows/packages.yml
  5. +469 −423 CHANGELOG.md
  6. +6 −4 README.md
  7. +5 −5 RELEASE.md
  8. +0 −4 docs/rules/extensions.md
  9. +1 −1 docs/rules/first.md
  10. +1 −1 docs/rules/imports-first.md
  11. +5 −3 docs/rules/named.md
  12. +1 −1 docs/rules/no-cycle.md
  13. +1 −1 docs/rules/no-duplicates.md
  14. +11 −0 docs/rules/no-namespace.md
  15. +1 −1 docs/rules/no-unused-modules.md
  16. +1 −1 docs/rules/no-useless-path-segments.md
  17. +21 −0 docs/rules/order.md
  18. +3 −3 memo-parser/package.json
  19. +7 −6 package.json
  20. +12 −6 resolvers/node/CHANGELOG.md
  21. +4 −2 resolvers/node/index.js
  22. +4 −4 resolvers/node/package.json
  23. +4 −0 resolvers/node/test/package-mains/jsnext/package.json
  24. 0 resolvers/node/test/package-mains/jsnext/src/index.js
  25. +5 −0 resolvers/node/test/package-mains/module-and-jsnext/package.json
  26. 0 resolvers/node/test/package-mains/module-and-jsnext/src/index.js
  27. +4 −0 resolvers/node/test/package-mains/module/package.json
  28. 0 resolvers/node/test/package-mains/module/src/index.js
  29. +1 −0 resolvers/node/test/package-mains/package.json
  30. +27 −0 resolvers/node/test/packageMains.js
  31. +35 −35 resolvers/webpack/CHANGELOG.md
  32. +4 −4 resolvers/webpack/index.js
  33. +3 −3 resolvers/webpack/package.json
  34. +5 −0 resolvers/webpack/test/package-mains/module-and-jsnext/package.json
  35. 0 resolvers/webpack/test/package-mains/module-and-jsnext/src/index.js
  36. +5 −0 resolvers/webpack/test/packageMains.js
  37. +1 −1 src/core/importType.js
  38. +7 −3 src/core/packagePath.js
  39. +1 −1 src/docsUrl.js
  40. +2 −2 src/rules/extensions.js
  41. +12 −6 src/rules/max-dependencies.js
  42. +90 −24 src/rules/named.js
  43. +3 −3 src/rules/newline-after-import.js
  44. +1 −1 src/rules/no-cycle.js
  45. +14 −1 src/rules/no-duplicates.js
  46. +30 −3 src/rules/no-dynamic-require.js
  47. +44 −40 src/rules/no-extraneous-dependencies.js
  48. +2 −2 src/rules/no-import-module-exports.js
  49. +24 −7 src/rules/no-namespace.js
  50. +1 −1 src/rules/no-relative-packages.js
  51. +1 −1 src/rules/no-relative-parent-imports.js
  52. +1 −1 src/rules/no-restricted-paths.js
  53. +1 −1 src/rules/no-self-import.js
  54. +1 −1 src/rules/no-unassigned-import.js
  55. +1 −1 src/rules/no-unused-modules.js
  56. +1 −1 src/rules/no-useless-path-segments.js
  57. +9 −0 tests/.eslintrc
  58. +0 −8 tests/.eslintrc.yml
  59. +0 −2 tests/files/cycles/depth-one.js
  60. +2 −0 tests/files/cycles/es6/depth-one.js
  61. 0 tests/files/cycles/{ → es6}/depth-three-indirect.js
  62. 0 tests/files/cycles/{ → es6}/depth-three-star.js
  63. 0 tests/files/cycles/{ → es6}/depth-two.js
  64. +1 −1 tests/files/cycles/flow-types-depth-two.js
  65. 0 tests/files/node_modules/esm-package-not-in-pkg-json/esm-module/index.js
  66. +4 −0 tests/files/node_modules/esm-package-not-in-pkg-json/esm-module/package.json
  67. 0 tests/files/node_modules/esm-package-not-in-pkg-json/index.js
  68. +5 −0 tests/files/node_modules/esm-package-not-in-pkg-json/package.json
  69. 0 tests/files/node_modules/esm-package/esm-module/index.js
  70. +4 −0 tests/files/node_modules/esm-package/esm-module/package.json
  71. 0 tests/files/node_modules/esm-package/index.js
  72. +5 −0 tests/files/node_modules/esm-package/package.json
  73. +1 −0 tests/files/package.json
  74. +2 −1 tests/files/webpack.config.js
  75. +6 −0 tests/src/cli.js
  76. +1 −1 tests/src/config/typescript.js
  77. +2 −2 tests/src/core/docsUrl.js
  78. +12 −5 tests/src/core/getExports.js
  79. +10 −1 tests/src/core/importType.js
  80. +154 −0 tests/src/core/resolve.js
  81. +10 −0 tests/src/rules/extensions.js
  82. +56 −1 tests/src/rules/max-dependencies.js
  83. +59 −0 tests/src/rules/named.js
  84. +113 −103 tests/src/rules/no-cycle.js
  85. +24 −13 tests/src/rules/no-duplicates.js
  86. +84 −0 tests/src/rules/no-dynamic-require.js
  87. +16 −0 tests/src/rules/no-extraneous-dependencies.js
  88. +1 −0 tests/src/rules/no-namespace.js
  89. +1 −1 tests/src/rules/no-unresolved.js
  90. +96 −1 tests/src/rules/order.js
  91. +5 −0 utils/.eslintrc
  92. +32 −25 utils/CHANGELOG.md
  93. +4 −4 utils/package.json
  94. +2 −6 utils/parse.js
  95. +1 −4 utils/resolve.js
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"presets": [ "es2015-argon" ],
"presets": ["airbnb"],
"sourceMaps": "inline",
"retainLines": true,
"env": {
"test": {
"plugins": [
"istanbul",
[ "module-resolver", { "root": [ "./src/" ] } ]
["module-resolver", { "root": ["./src/"] }],
]
},
"testCompiled": {
"plugins": [
[ "module-resolver", { "root": [ "./lib/" ] } ]
["module-resolver", { "root": ["./lib/"] }],
]
}
}
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaVersion": 2020,
},
"rules": {
"comma-dangle": [2, "always-multiline"],
2 changes: 1 addition & 1 deletion .github/workflows/node-4+.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
with:
versionsAsRoot: true
type: majors
preset: '>= 6' # preset: '>=4' # see https://github.com/benmosher/eslint-plugin-import/issues/2053
preset: '>= 6' # preset: '>=4' # see https://github.com/import-js/eslint-plugin-import/issues/2053

latest:
needs: [matrix]
2 changes: 1 addition & 1 deletion .github/workflows/packages.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
id: set-matrix
with:
type: 'majors'
preset: '>= 6' # preset: '>=4' # see https://github.com/benmosher/eslint-plugin-import/issues/2053
preset: '>= 6' # preset: '>=4' # see https://github.com/import-js/eslint-plugin-import/issues/2053
versionsAsRoot: true

tests:
Loading