26 lines
715 B
JavaScript
26 lines
715 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
import pluginReact from "eslint-plugin-react";
|
|
|
|
/** @type {import("eslint").Linter.Config[]} */
|
|
export default [
|
|
{ ignores: ["node_modules/**", "dist/**", "build/**", "dev-dist/**"] },
|
|
{
|
|
files: ["**/*.{js,mjs,cjs,jsx}"]
|
|
},
|
|
{ languageOptions: { globals: globals.browser } },
|
|
pluginJs.configs.recommended,
|
|
{
|
|
...pluginReact.configs.flat.recommended,
|
|
settings: {
|
|
react: { version: "detect" }
|
|
},
|
|
rules: {
|
|
...pluginReact.configs.flat.recommended.rules,
|
|
"react/prop-types": 0,
|
|
"react/no-children-prop": 0 // Disable react/no-children-prop rule
|
|
}
|
|
},
|
|
pluginReact.configs.flat["jsx-runtime"]
|
|
];
|