-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
86 lines (86 loc) · 3.19 KB
/
.eslintrc.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json" // Caminho para o seu arquivo tsconfig.json
},
"plugins": [
"@typescript-eslint",
"react",
"solid"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-array-constructor": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-loss-of-precision": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": "off",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"camelcase": "warn",
"complexity": ["warn", 40],
"consistent-this": ["warn", "self"],
"func-name-matching": "warn",
"func-names": "warn",
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
"line-comment-position": ["warn", { "position": "above" }],
"lines-between-class-members": ["warn", "always"],
"max-depth": ["warn", 3],
"max-len": ["warn", { "code": 250 }],
"max-lines-per-function": ["warn", { "max": 150 }],
"max-nested-callbacks": ["warn", 2],
"max-params": ["warn", 5],
"max-statements": ["warn", 30],
"no-case-declarations": "off",
"no-compare-neg-zero": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-debugger": "warn",
"no-dupe-args": "warn",
"no-dupe-class-members": "warn",
"no-dupe-else-if": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-duplicate-imports": "warn",
"no-empty": "warn",
"no-ex-assign": "warn",
"no-extra-boolean-cast": "warn",
"no-extra-semi": "warn",
"no-irregular-whitespace": "warn",
"no-magic-numbers": "off",
"no-mixed-spaces-and-tabs" : "warn",
"no-prototype-builtins": "warn",
"no-redeclare": "warn",
"no-undef": "off",
"no-unexpected-multiline": "warn",
"no-unused-expressions": "off",
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"no-useless-escape": "warn",
"no-useless-rename": "warn",
"no-var": "warn",
"non-nullish": "off",
"object-curly-spacing": ["warn", "always"],
"react/display-name": "warn",
"react/no-deprecated": "warn",
"react/no-direct-mutation-state": "warn",
"react/prop-types": "warn",
"yoda": "warn"
}
}