-
-
Notifications
You must be signed in to change notification settings - Fork 642
Open
Description
The format for flat configs in eslint-plugin-jsx-a11y
is outside the norm for ESLint plugins.
Currently:
const jsxA11y= require('eslint-plugin-jsx-a11y');
module.exports = [
jsxA11y.flatConfigs.recommended
];
What I'd like to see:
import jsxA11y from "eslint-plugin-jsx-a11y";
import { defineConfig } from "eslint";
export default defineConfig({
files: ["**/*.jsx"],
plugins: {
"jsx-a11y": jsxA11y
},
extends: ["jsx-a11y/recommended"]
});
You can support this newer format by renaming flatConfigs.recommended
to configs["flat/recommended"]
(or by exporting the same config with both names). See the docs here:
https://eslint.org/docs/latest/extend/plugins#backwards-compatibility-for-legacy-configs
pascalmtts and JamesJosephFinn
Metadata
Metadata
Assignees
Labels
No labels