-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Upgrade to support eslint@v9
#1036
base: master
Are you sure you want to change the base?
Conversation
|
Stale pull request |
@phun-ky can you take this up again? What is missing to get eslint upgraded? |
@Mettbrot I can take a look at it tomorrow and see if there's anything I can do more. I have some spare time moving forwards apaprently |
Wow, cool Thanks! We’d need to find a maintainer of this, it seems pretty silent around the PRs #1107 |
@JounQin first blocker: |
They live in this very repository too, right? Can we update them too and release them in one go? |
|
hm, I think I've looked at this wrongly. The error I get is from v9: |
I've posted this in the eslint discord:
|
I'm getting a bit closer. Latest update: converted to ts, added rollup. The things that remains: decide if we need to find a |
Updated description to this PR. Getting closer. I am commenting out the rules in our own |
Linting is fixed, and I do get one test to run, but with the new test regime (native node test runner), I can't get it to only use the default config in the tests, and it looks up the projects |
Yes, test files are also linted otherwise it should be listed in eslintignore. |
@JounQin nono, I meant, that the config passed to ESLint in the tests are merged with the ESLint config in the project root. Is that how it should work? |
Yes, that's how eslint works, test files linting merges and overrides the root, so that we only enable/disable specific rules for test files. |
So to be clear, when testing, the passed config from the tests should override root, and if no passed config in the test exists, the root take presedence? |
hm, I see that the current tests has a flaw, or the program it self. with EDIT: I think I have to rephrase this to: the default config used in the tests has no actual usage, right? I tried to put it like this now:
And use the path to |
What is |
the equivalent of this: https://github.com/prettier/prettier-eslint/blob/master/src/__tests__/index.js#L57 |
Let me see if I get this correctly: If you use 1. no
2. no
3.
4.
Does this seem correct? Or should, when config is given/passed (programtically and not from |
What's cooking:
Missing:
✅ Closes: #947 #1015 #1083