-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc
86 lines (86 loc) · 3.32 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
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"jest": true
},
"rules": {
"prefer-const": "off",
"no-restricted-syntax": "off",
"newline-per-chained-call": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"complexity": ["warn", 10],
"global-require": "off",
"lines-between-class-members": "off",
"no-unused-vars": ["warn"],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-return-assign": ["error", "except-parens"],
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"no-await-in-loop": "warn",
"padded-blocks": [
"error",
{
"blocks": "never",
"switches": "never",
"classes": "never"
}
],
"max-len": [
"error",
{
"code": 200,
"ignoreUrls": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true
}
],
"camelcase": "off",// ["warn", { "properties": "never" }],
"prefer-promise-reject-errors": ["off"],
"prefer-destructuring": "off",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/label-has-for": "off", // deprecated: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/2a490286937fa8eba3ed213a4637edec932748de
"jsx-a11y/label-has-associated-control": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/no-interactive-element-to-noninteractive-role": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-noninteractive-tabindex": "warn",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/media-has-caption": "off", // Media elements such as <audio> and <video> must have a <track> for captions
"import/prefer-default-export": "off",
"import/no-cycle": ["warn"],
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/no-webpack-loader-syntax": "off",
"import/extensions": "off",
"react/prop-types": "off", // should turn in the future
"react/button-has-type": "off",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
"react/jsx-wrap-multilines": "off",
"react/no-unused-prop-types": "off",
"react/no-unused-state": "off",
"react/no-did-update-set-state": ["warn"],
"react/react-in-jsx-scope": "off", // This is only required in older versions of React
"react/sort-comp": "off",
"react/require-default-props": "off",
"react/no-array-index-key": "warn",
"react/jsx-indent": "warn", // why is vscode incorrectly autoindenting?
"react/jsx-closing-tag-location": "warn", // why is vscode incorrectly autoindenting?
"strict": "off"
}
}