forked from Andy-K-Sparklight/Alicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1020 Bytes
/
.eslintrc.js
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
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
es2021: true,
commonjs: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: ["tsconfig.json"],
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "react-hooks"],
rules: {
"no-empty-function": "off",
"no-empty": "off",
"no-debugger": "off",
"prefer-const": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/no-empty-function": "off",
"require-await": "warn",
"@typescript-eslint/no-floating-promises": "warn",
},
};