forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
121 lines (121 loc) · 3.37 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
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react-hooks"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"globals": {
"VERSION": true,
"$PropertyType": true,
"TimeoutID": true,
"object": true,
"__DEV__": true,
"Stripe": true
},
"rules": {
"react/jsx-filename-extension": 0,
"react/sort-comp": 0,
"react/destructuring-assignment": 0,
"react/state-in-constructor": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"react/jsx-no-useless-fragment": "error",
"react/jsx-curly-brace-presence": 0,
"import/no-extraneous-dependencies": 0,
"import/no-cycle": "warn",
"react/prop-types": 0,
"arrow-parens": 0,
"prefer-destructuring": 0,
"no-async-promise-executor": "warn",
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
"jsx-a11y/click-events-have-key-events": "warn",
"no-console": ["error", { "allow": ["error", "warn"] }],
"prefer-template": "off",
"no-plusplus": 0,
"no-underscore-dangle": "off",
"no-nested-ternary": "warn",
"react/require-default-props": "off",
"import/no-named-default": 0,
"import/no-webpack-loader-syntax": 0,
"import/extensions": [
"error",
"always",
{
"ts": "never",
"tsx": "never",
"js": "never"
}
],
"import/default": "error",
"no-param-reassign": ["error", { "props": false }],
"camelcase": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{ "aspects": ["noHref", "invalidHref"] }
],
"jsx-a11y/label-has-for": "off",
"no-bitwise": "off",
"arrow-body-style": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"max-classes-per-file": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": { "jsx": true },
"warnOnUnsupportedTypeScriptVersion": true
},
"plugins": ["@typescript-eslint"],
"rules": {
"default-case": "off",
"no-dupe-class-members": "off",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "warn",
"@typescript-eslint/no-namespace": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn",
{
"functions": false,
"classes": false,
"variables": false,
"typedefs": false
}
],
"no-unused-vars": "off",
"no-undef": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "args": "none", "ignoreRestSiblings": true }
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn",
"import/extensions": 0,
"import/no-unresolved": 0,
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"spaced-comment": "warn"
}
}
]
}