forked from Cal-CS-61A-Staff/61a-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (70 loc) · 2.04 KB
/
.eslintrc.js
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
module.exports = {
/* your base configuration of choice */
extends: 'airbnb',
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
globals: {
__static: true,
ExecutionVisualizer: true,
ELECTRON: true,
SCHEME_COMPILE: true,
brython: true,
__BRYTHON__: true,
importScripts: true,
initSqlJs: true,
initData: true,
VERSION: true,
},
rules: {
'import/no-unresolved': false,
"import/extensions": false,
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-use-before-define": [2, {
"functions": false,
"classes": false
}],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"indent": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"quotes": ["error", "double"],
"no-else-return": "off",
"no-plusplus": "off",
"react/destructuring-assignment": 0,
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"import/prefer-default-export": 1,
"react/no-multi-comp": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-continue": 0,
"react/prop-types": 0,
"import/no-cycle": 0,
"no-console": 0,
"import/no-webpack-loader-syntax": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"jsx-a11y/label-has-for": {
"required": {
"some": ["nesting", "id"]
}
},
"jsx-a11y/label-has-associated-control": [2, {
"assert": "either",
}],
}
};