43 lines
945 B
JavaScript
43 lines
945 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2020: true,
|
|
node: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"@typescript-eslint/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
],
|
|
ignorePatterns: ["dist", ".eslintrc.js", "node_modules"],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["react-refresh"],
|
|
rules: {
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ allowConstantExport: true },
|
|
],
|
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["packages/**/*.ts", "packages/**/*.tsx"],
|
|
rules: {
|
|
"no-console": "warn",
|
|
},
|
|
},
|
|
{
|
|
files: ["projects/**/*.ts", "projects/**/*.tsx"],
|
|
rules: {
|
|
"no-console": "off",
|
|
},
|
|
},
|
|
],
|
|
};
|