Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-02-26 12:44:34 +01:00
parent 992410fdde
commit 73247c1ec5
16 changed files with 2183 additions and 85 deletions

View File

@@ -3,30 +3,30 @@ import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: {
globals: globals.browser,
parserOptions: {
ecmaFeatures: {
jsx: true
}
}
}},
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{
languageOptions: {
globals: globals.browser,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: "detect"
}
version: "detect",
},
},
rules: {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
}
}
];
},
},
];