-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
46 lines (46 loc) · 1.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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": ["tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
"react-hooks",
"import",
"simple-import-sort",
"import-newlines",
"sort-destructure-keys"
],
"extends": ["airbnb-typescript", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"sort-destructure-keys/sort-destructure-keys": [2],
"react/jsx-filename-extension": [0],
"implicit-arrow-linebreak": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-param-reassign": [
"error",
{
"props": true
}
],
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/indent": "off",
"function-paren-newline": "off",
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"]
},
"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"react": {
"pragma": "React",
"version": "detect"
}
}
}