mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 06:40:42 -05:00
23 lines
598 B
JavaScript
23 lines
598 B
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
env: { browser: true, es2020: true },
|
||
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:react/recommended",
|
||
|
"plugin:react/jsx-runtime",
|
||
|
"plugin:react-hooks/recommended",
|
||
|
],
|
||
|
ignorePatterns: ["dist", ".eslintrc.cjs"],
|
||
|
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
|
||
|
settings: { react: { version: "18.2" } },
|
||
|
plugins: ["react-refresh"],
|
||
|
rules: {
|
||
|
"react/prop-types": "off",
|
||
|
"react/jsx-no-target-blank": "off",
|
||
|
"react-refresh/only-export-components": [
|
||
|
"warn",
|
||
|
{ allowConstantExport: true },
|
||
|
],
|
||
|
},
|
||
|
};
|