-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
62 lines (62 loc) · 1.54 KB
/
.eslintrc
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard-with-typescript",
"prettier",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "prettier", "eslint-plugin", "@typescript-eslint"],
"rules": {
"no-console": "off", // Means error
"default-case": "error",
"default-case-last": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxBOF": 0,
"maxEOF": 1
}
],
"no-var": "error",
"comma-dangle": ["error", "never"],
"linebreak-style": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["can", "has", "is", "should"]
}
],
"import/extensions": [
"error",
"never",
{
"css": "always",
"json": "always",
"scss": "always"
}
],
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/strict-boolean-expressions": "warn"
}
}