-
Notifications
You must be signed in to change notification settings - Fork 15
Upgrade eslint from v8 to v9 #657
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
Conversation
5a1a822
to
73e5e2c
Compare
@joluj I'm having trouble with the reuse check, it reports this error:
However, |
@georg-schwarz @rhazn Any ideas regarding the licensing information? |
Yes, the license checker breaks if the tag is repeated in a file an not in the header. See here for example: https://github.com/jvalue/jayvee/pull/657/files#diff-9601a8f6c734c2001be34a2361f76946d19a39a709b5e8c624a2a5a0aade05f2R115 . There is a way around it I've used before in the docs autogeneration, I'll try to look it up. |
d1b3c40
to
bc8482f
Compare
@joluj Another strange CI error (can't even reproduce this one locally):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MJS files don't seem to be linted properly.
import baseConfig from "../../eslint.config.mjs"; | ||
|
||
export default defineConfig(baseConfig, [globalIgnores(["!**/*"]), { | ||
languageOptions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't formatted properly is it? Also, it uses tabs instead of spaces.
{ plugins: { 'unicorn': unicorn } }, | ||
{files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also doesn't seem to be formatted properly
}, | ||
...baseConfig, | ||
{ | ||
languageOptions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs
import { fixupPluginRules } from "@eslint/compat"; | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: dirname(fileURLToPath(import.meta.url)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs
This includes replacing a deprecated rule with a new plugin
Closed in favor of #675 |
Depends on #656.
This PR upgrades eslint from version 8 to version 9.
This includes migrating to the new "flat config" format.