forked from sugarlabs/musicblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.08 KB
/
.eslintrc.json
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
{
"env": {
"es6": true,
"browser": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "script",
"ecmaFeatures": {
"globalReturn": false
}
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-console": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"prefer-const": [
"warn",
{
"destructuring": "any",
"ignoreReadBeforeAssign": true
}
],
"no-undef": "error",
"no-redeclare": [2, {"builtinGlobals": false}],
"indent": ["warn", 4, { "SwitchCase": 1 }],
"quotes": ["warn", "double", { "avoidEscape": true }],
"semi": "error",
"max-len": [
"warn",
{
"code": 120,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn"
}
}