-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
135 lines (135 loc) · 3.27 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"env": {
"browser": true
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"map": [
["@assets", "./src/assets"],
["@components", "./src/components"],
["@hooks", "./src/hooks"],
["@layouts", "./src/layouts"],
["@pages", "./src/pages"],
["@redux", "./src/redux"],
["@shared", "./src/shared"],
["@utils", "./src/utils"]
],
"extensions": [".ts", ".tsx"]
}
}
},
"ignorePatterns": ["*.config.*", "*.d.ts"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"],
"warnOnUnsupportedTypeScriptVersion": false
},
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["import", "react", "prettier"],
"root": true,
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-unused-vars": "off",
"arrow-parens": "off",
"arrow-body-style": "off",
"function-paren-newline": "off",
"space-before-function-paren": 0,
"radix": "off",
"prefer-destructuring": "off",
"semi": "off",
"indent": "off",
"consistent-return": "off",
"object-curly-newline": "off",
"linebreak-style": "off",
"require-jsdoc": "off",
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"no-console": "off",
"no-plusplus": "off",
"no-tabs": "off",
"no-undef": 0,
"no-empty": 0,
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-useless-escape": 1,
"no-fallthrough": 1,
"no-extra-boolean-cast": 1,
"no-mixed-operators": "off",
"no-case-declarations": "off",
"no-restricted-globals": "off",
"no-control-regex": "off",
"react/no-deprecated": 0,
"react/no-unescaped-entities": "warn",
"react/no-string-refs": "warn",
"react/no-children-prop": 0,
"react/no-unused-prop-types": "off",
"react/no-find-dom-node": 1,
"react/prop-types": 0,
"react/display-name": 0,
"react/jsx-props-no-spreading": "off",
"react/jsx-no-target-blank": "warn",
"react/jsx-indent": "off",
"react/jsx-one-expression-per-line": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/forbid-prop-types": "off",
"react/no-did-mount-set-state": "off",
"react/self-closing-comp": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"]
}
],
"jsx-a11y/label-has-for": [
2,
{
"required": {
"every": ["id"]
}
}
]
}
}