forked from Shikhar15606/vyper-otc-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
110 lines (110 loc) · 2.1 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:@next/next/recommended", "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:css-modules/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"plugins": ["react", "import", "@typescript-eslint", "css-modules"],
"rules": {
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"arrow-body-style": 0,
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"comma-spacing": 2,
"comma-style": 2,
"curly": [2, "multi-line", "consistent"],
"dot-location": [2, "property"],
"css-modules/no-unused-class": 1,
"handle-callback-err": 1,
"indent": [2, "tab"],
"no-tabs": [0],
"no-lone-blocks": ["warn"],
"max-nested-callbacks": [
2,
{
"max": 4
}
],
"max-statements-per-line": [
2,
{
"max": 2
}
],
"no-console": 1,
"no-empty-function": 2,
"no-floating-decimal": 2,
"no-inline-comments": 1,
"no-lonely-if": 1,
"no-multi-spaces": 2,
"no-multiple-empty-lines": [
2,
{
"max": 2,
"maxEOF": 1,
"maxBOF": 0
}
],
"no-shadow": [
2,
{
"allow": ["err", "resolve", "reject"]
}
],
"eqeqeq": 1,
"camelcase": 1,
"no-unused-vars": 1,
"dot-notation": 0,
"no-trailing-spaces": [2],
"no-var": 2,
"object-curly-spacing": [2, "always"],
"prefer-const": 2,
"quotes": [1, "single"],
"semi": [2, "always"],
"space-before-blocks": 2,
"space-before-function-paren": [0],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": 2,
"import/order": [
1,
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"yoda": 2
}
}