-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
32 lines (32 loc) · 1.18 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
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "airbnb", "plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true,
"env": {
"browser": true
},
"ignorePatterns": ["dist/*"],
"rules": {
"@typescript-eslint/no-var-requires": 0,
"no-undef": "off",
"no-return-assign": "off",
"no-unused-expressions":"off",
"no-else-return":"off",
"arrow-body-style":"off",
"react/no-array-index-key":"off",
"react/jsx-filename-extension": [1, { "extensions": [".tsx",".jsx"] }],
"react/function-component-definition": [
2,
{
"namedComponents": ["arrow-function", "function-expression"],
"unnamedComponents": ["arrow-function", "function-expression"]
}
],
"import/extensions": [ "error", "ignorePackages", { "": "never", "js": "never", "jsx": "never", "ts": "never", "tsx": "never" } ],
"import/no-unresolved": [
2,
{ "caseSensitive": false }
]
}
}