-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
27 lines (26 loc) · 742 Bytes
/
.eslintrc.cjs
File metadata and controls
27 lines (26 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require("@rushstack/eslint-patch/modern-module-resolution");
// eslint-disable-next-line @typescript-eslint/no-var-requires
const baseConfig = require("@fieryeagle/eslint-config-react");
module.exports = {
extends: ["@fieryeagle/eslint-config-react"],
parserOptions: {
...baseConfig.parserOptions,
tsconfigRootDir: __dirname,
},
settings: {
...baseConfig.settings,
"import/resolver": {
typescript: {},
},
"import/core-modules": ["virtual:uno.css"],
},
plugins: [...baseConfig.plugins, "react-refresh"],
rules: {
...baseConfig.rules,
"@typescript-eslint/ban-ts-comment": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
};