Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Feature/45s update eslint plugin import #61

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/45-update-eslint-plugin-import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
issue: https://github.com/pmedianetwork/eslint-config/issues/45
type: minor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also have to actually set the rule:

"import/no-cycle": "error"

It is not set at all at the moment. Currently, we only have it in insights, and there, we set it to "warn".

IF we do this, it's most likely a breaking change. Do we want that @danielbartsch
I am also not sure how this will integrate with typescript ... But we could just say that repos that don't want it that strict need to "downgrade" the rule "warn" for themselves .. ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good rule to have.
If one some of the projects have issues with it, as last resort they can disable it with "import/no-cycle": 0. That could be a good opportunity to check the health of the codebase though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this import-js/eslint-plugin-import#1494 is merged, I'd do it, even tho yes, it is a breaking change.

But since we have 2 other PRs merged, I'd do this after the release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I'll make a minor release and then we can maybe do this as a breaking release, maybe together with #39

---

Upated `eslint-plugin-import` to `2.20.1`
253 changes: 154 additions & 99 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"eslint-import-resolver-typescript": "1.1.1",
"eslint-import-resolver-webpack": "0.11.1",
"eslint-plugin-flowtype": "3.12.2",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-no-only-tests": "2.3.1",
"eslint-plugin-prettier": "3.1.2",
Expand Down