-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.eslintrc
More file actions
92 lines (92 loc) · 2.06 KB
/
.eslintrc
File metadata and controls
92 lines (92 loc) · 2.06 KB
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/hooks",
"plugin:@typescript-eslint/recommended",
"prettier",
// "prettier/react",
// "prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"react",
"prettier"
],
"rules": {
"func-names": 0,
"camelcase": 0,
"no-continue": 0,
"import/extensions": [
"error",
"never"
],
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"jsx-a11y/accessible-emoji": 0,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "auto"
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".ts",
".tsx"
]
}
],
"react/jsx-one-expression-per-line": "warn",
"react/prop-types": 0,
"react/require-default-props": 0,
"react/style-prop-object": 0,
"react/jsx-props-no-spreading": 0,
"react/no-array-index-key": 0,
// "semi": ["error", "never"],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-shadow": "off",
"no-use-before-define": "off",
"no-unused-expressions": 0,
"no-alert": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-shadow": [
"error"
],
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": false
}
],
"@typescript-eslint/no-var-requires": 0,
"react-hooks/exhaustive-deps": 1,
"consistent-return": 1,
"require-yield": 1,
"no-param-reassign": 0,
"no-nested-ternary": 0
}
}