-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Research Spike: ESLint 9 compatibility #477
Comments
Since the new flat config no longer resolves files, and supports |
I'd like to keep dual. Legacy |
Legacy configuration are deprecated https://eslint.org/blog/2023/12/eslint-v9.0.0-alpha.0-released/ There are far less quirks and hacks packaging as pure ESM, rather than dealing with dual packaging limitations. |
They're deprecated but still supported. I don't want to break anyone's current workflow before they're ready including myself. For example, compatibility with other plugins. |
What's the plan? |
If you don't use Markdown, then the current version
import eslintMdx from 'eslint-mdx';
import mdx from 'eslint-plugin-mdx';
/** @type {import('eslint').Linter.FlatConfig} */
const config = [
{
files: ['**/*.mdx'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
parser: eslintMdx,
globals: {
React: false,
},
},
plugins: {
mdx,
},
rules: {
'mdx/remark': 'warn',
'no-unused-expressions': 'error',
'react/react-in-jsx-scope': 0,
},
},
];
export default config; |
i have integrating mdx into a plugin it can works fine for eslint V9 |
what's plan for ESLint V9, i used it in local, it seems that everything works fine except we need to bump |
ESLint v8 is EOL in one month (https://eslint.org/version-support/). Would you consider dropping v8 support to make it easier to migrate this plugin to v9? If anyone really needs v8 support, they can continue to use the current version of this plugin. |
|
it's time to drop cjs +1 :) |
Initial checklist
Problem
ESLint 9 is changing the plugin API: https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/
There may be changes needed in ESLint-MDX
Solution
Check to see if any changed/removed APIs are used, migrate if needed.
Alternatives
The text was updated successfully, but these errors were encountered: