odin-codespace/cv-project/.eslintrc.cjs

23 lines
598 B
JavaScript
Raw Normal View History

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