drawDB/.eslintrc.cjs

23 lines
569 B
JavaScript
Raw Normal View History

2023-12-16 11:39:13 +08:00
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
2024-04-06 16:11:12 +08:00
"prettier"
2023-12-16 11:39:13 +08:00
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"react/prop-types": 0,
},
};