-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.33 KB
/
.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 = {
root: true,
extends: [],
ignorePatterns: ["*.config.js", "dist/**"],
overrides: [
{
files: ["*.ts", "*.tsx"],
plugins: ["react"],
env: {
browser: true,
es2021: true,
node: true
},
extends: ["standard-with-typescript", "plugin:react/recommended", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.entry.json"]
},
rules: {
"comma-dangle": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/quotes": "off",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/no-extraneous-class": "off", // Cant be bothered rewriting these, maybe later
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: false
}
],
"@typescript-eslint/indent": "off"
}
}
]
};