-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·83 lines (82 loc) · 2.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
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
{
"parser": "babel-eslint",
"root": true,
"extends": [
"airbnb",
"prettier",
"prettier/babel",
"prettier/react",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"prettier",
"react-hooks"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"globals": {
"IS_PROD": true,
"STRIPE_PUBLIC_KEY": true,
"SENTRY_CLIENT_URL": true,
"deferredPrompt": true,
"axios": true,
"globalThis": true,
"ENABLE_SOCKETS": true
},
"rules": {
"prettier/prettier": ["warn"],
"space-before-function-paren": "off",
"react/prefer-stateless-function": "warn",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": [ 2, {
"required": {
"every": [ "id" ]
}
}],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}],
"max-len": ["warn", {
"ignoreComments": true,
"ignoreStrings": true,
"code": 240
}],
"react/jsx-uses-react": 1,
"react/sort-comp": "off",
"import/no-cycle": "off",
"react/prop-types": "off",
"linebreak-style": "off",
"global-require": "off",
"semi": "off",
"arrow-body-style": "off",
"comma-dangle": "off",
"class-methods-use-this": "off",
"quote-props": "off",
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__", "_id", "_doc"] }],
"react/destructuring-assignment": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/no-array-index-key": "warn",
"jsx-a11y/control-has-associated-label": "warn",
"jsx-a11y/no-autofocus": "warn",
"max-classes-per-file": "warn",
"react/jsx-props-no-spreading": ["off"],
"camelcase": "off"
}
}