odin-codespace/memory-game/mg-frontend/.eslintrc.cjs

23 lines
598 B
JavaScript
Raw Normal View History

2024-07-09 07:33:08 -04:00
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
2024-07-13 13:17:27 -04:00
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
2024-07-09 07:33:08 -04:00
],
2024-07-13 13:17:27 -04:00
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
2024-07-09 07:33:08 -04:00
rules: {
2024-07-13 13:17:27 -04:00
"react/prop-types": "off",
"react/jsx-no-target-blank": "off",
"react-refresh/only-export-components": [
"warn",
2024-07-09 07:33:08 -04:00
{ allowConstantExport: true },
],
},
2024-07-13 13:17:27 -04:00
};