Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for breaking change in eslint v6+ #21

Closed
wants to merge 1 commit into from

Conversation

roniger
Copy link

@roniger roniger commented Jun 25, 2019

No description provided.

@pladaria
Copy link

Please, accept this PR

adeira-github-bot pushed a commit to kiwicom/eslint-config-kiwicom that referenced this pull request Jun 27, 2019
This dependency was not update for last 2 years and it's currently blocking us, see: zertosh/eslint-plugin-dependencies#21

We don't need this plugin even if they merge the PR because 'import' plugin solves almost everything.

kiwicom-source-id: 09c21ade25816dfb357c4c9598fb38281a0f0ce9
@gabegorelick
Copy link

Better approach is to not rely on internal ESLint functions at all. See vuejs/eslint-plugin-vue#910 for comparison.

@roniger
Copy link
Author

roniger commented Sep 6, 2019 via email

@gabegorelick
Copy link

I would be happy to, but since there is no indication that any PR will get merged (none since 2017), I wasn't planning on it. See the (currently one-sided) discussion on #23.

@roniger
Copy link
Author

roniger commented Sep 6, 2019 via email

@AdrieanKhisbe
Copy link

@roniger @gabegorelick

I considered at some point doing a published fork, but give up when realised that the plugin eslint-plugin-import does the job (and way more)

Here are the equivalent rules:

  • dependencies/no-cycles -> import/no-cycle: doc
  • dependencies/no-unresolved + dependencies/case-sensitive -> import/no-unresolved: doc
    • ⚠️ beware option is needed for require ({"commonjs": true})
    • for case sensitivity use the caseSensitive option
  • dependencies/require-json-ext -> import/extensions: doc

Here is the list of all the rules: https://github.com/benmosher/eslint-plugin-import#rules

@AdrieanKhisbe
Copy link

☝️

that could interest you too @pladaria :)

and also everyone that 👍 the issues and comment
@despairblue, @Stegoo, @edi9999, @lynxtaa, @yelworc, @AdriVanHoudt, @mkamakura, @ErideDLF, @d2phap, @lynxtaa, @oknechirik

@gabegorelick
Copy link

import/no-cycle doesn't work for commonjs.

@mrtnzlml
Copy link

@AdrieanKhisbe We did exactly the same long time ago! 👍

@pladaria
Copy link

pladaria commented Oct 21, 2019

@AdrieanKhisbe sadly import/no-cycle doesn't work well with flowtype
import-js/eslint-plugin-import#1343
And looks like it has similar issues with typescript:
import-js/eslint-plugin-import#1453

We finally did an internal fork of this plugin

@dominicfraser
Copy link

@pladaria, would this fix your issue?

import-js/eslint-plugin-import#1494

lexpank added a commit to goodylabs/eslint-plugin-dependencies that referenced this pull request Jan 10, 2020
lexpank added a commit to goodylabs/eslint-plugin-dependencies that referenced this pull request Jan 10, 2020
lexpank added a commit to goodylabs/eslint-plugin-dependencies that referenced this pull request Jan 10, 2020
@jeffreyc86
Copy link

@zertosh - Hi can you you please approve and merge this PR? theres a breaking change due to folder restructuring from eslint version updates

@zertosh zertosh closed this in 34cccb5 Aug 20, 2023
@zertosh
Copy link
Owner

zertosh commented Aug 20, 2023

Published as 2.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants