forked from kgilbert-cmu/basketball-gm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
61 lines (61 loc) · 2.45 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
{
parser: "babel-eslint",
extends: "airbnb",
env: {
browser: true,
mocha: false,
node: false,
worker: false,
},
rules: {
"array-callback-return": "off", // False positives w/ async functions
"arrow-body-style": "off",
"arrow-parens": "off", // False positives w/ async functions
"consistent-return": "off",
"func-names": "off",
"generator-star-spacing": "off", // https://github.com/eslint/eslint/issues/6274
"import/newline-after-import": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
"indent": ["error", 4, {"SwitchCase": 1}],
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off", // I don't care enough to fix it
"jsx-a11y/no-static-element-interactions": "off",
"max-len": "off",
"no-alert": "off",
"no-await-in-loop": "off",
"no-console": "off",
"no-continue": "off",
"no-mixed-operators": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": ["error", {"destructuring": "all"}],
"quotes": "off",
"quote-props": "off", // Flow doesn't like unquoted numbers
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": ["error", {"extensions": [".js"]}],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-wrap-multilines": "off",
"react/no-array-index-key": "off",
"react/no-multi-comp": "off",
"react/no-unescaped-entities": "off",
"react/no-unused-prop-types": "off", // Would be nice, but tons of false positives
"react/require-default-props": "off", // Flow handles this better, I think
"react/sort-comp": "off", // Flow type definition of props in a React class confuses it
"spaced-comment": "off",
},
globals: {
"$Diff": false,
"$Keys": false,
"Class": false,
"SyntheticEvent": false,
"SyntheticKeyboardEvent": false,
"SyntheticInputEvent": false,
},
}