/
.eslintrc.cjs
30 lines (30 loc) 路 970 Bytes
/
.eslintrc.cjs
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
28
29
30
/** @type {import('eslint').Linter.Config} */
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./packages/*/tsconfig.json", "./packages/*/*/tsconfig.json"],
},
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
//"plugin:import/typescript",
],
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/require-await": "off",
"react-hooks/exhaustive-deps": "off",
},
settings: {
"import/resolver": {
typescript: true,
},
},
ignorePatterns: [`*.js`, `*.mjs`, `*.cjs`, `vite.config.ts`],
};