-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.yml
62 lines (61 loc) · 1.13 KB
/
.eslintrc.yml
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
env:
browser: true
es6: true
extends:
- eslint:recommended
globals:
$: readonly
ace: readonly
bootbox: readonly
Blockly: writable
Chartist: readonly
colorPalette: writable
goog: readonly
Atomics: readonly
SharedArrayBuffer: readonly
baudrate: writable
profile: readonly
projectData: writable
page_text_label: readonly
toolbox_label: readonly
tooltip_text: readonly
utils: readonly
parserOptions:
ecmaVersion: 8
sourceType: module
rules:
# This really needs to be an error
no-prototype-builtins: warn
no-cond-assign: warn
no-extra-semi: warn
no-fallthrough: warn
no-mixed-spaces-and-tabs: warn
no-redeclare: warn
no-useless-escape: warn
no-undef: warn
no-unused-vars: warn
overrides:
- files: ["src/modules/**/*.js"]
extends:
- google
parserOptions:
sourceType: module
rules: {
max-len: [
"warn",
code: 100
]
}
- files: [
"src/modules/blockly/language/**/*.js"
]
rules: {
max-len: "off"
}
- files: [
"src/modules/toolbox_data.js",
]
rules: {
max-len: "off",
no-multi-spaces: "off"
}