-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
.eslintrc
92 lines (92 loc) · 2.19 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
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
{
"extends": ["airbnb", "airbnb/rules/react", "eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": "latest"
},
"env": {
"browser": true,
"jest": true,
"node": true
},
"globals": {
"document": true,
"window": true,
"CONFIG": true
},
"rules": {
"global-require": 0,
"lines-between-class-members": 0,
"no-continue": 0,
"no-plusplus": 0,
"import/no-dynamic-require": 0,
"camelcase": 0,
"react/jsx-props-no-spreading": 0,
"linebreak-style": 0,
"react/prop-types": 0,
"no-confusing-arrow": 0,
"no-restricting-syntax": 0,
"semi": 0,
"allowForLoopAfterthoughts": 0,
"radix": 0,
"eqeqeq": 0,
"jsx-a11y/aria-role": 0,
"consistent-return": 0,
"no-use-before-define": 0,
"no-param-reassign": 0,
"arrow-parens": 0,
"react/jsx-one-expression-per-line": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"react/function-component-definition": 0,
"no-underscore-dangle": 0,
"no-return-assign": 0,
"no-nested-ternary": "off",
"import/prefer-default-export": 0,
"max-len": [
"error",
120,
2,
{
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignorePattern": "^(.*)@typedef(.*)"
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^TypesDefs(.*)"
}
],
"object-curly-newline": [
"error",
{
"ExportDeclaration": {
"minProperties": 4
}
}
]
},
"settings": {
"node": {
"extensions": [".mjs", ".js", ".jsx", ".ts", ".tsx"]
},
"import/resolver": {
"alias": {
"map": [
["@components", "./src/components/"],
["@features", "./src/features/"],
["@services", "./src/services/"],
["@hooks", "./src/hooks/"],
["@assets", "./src/assets/"],
["@utils", "./src/utils/"],
["@store", "./src/store/"]
],
"extensions": [".mjs", ".js", ".jsx", ".ts", ".tsx"]
}
}
}
}