forked from tambien/Piano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (58 loc) · 2.06 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
module.exports = {
"env": {
"browser": true,
"node" : true,
"mocha" : true,
"es6": true,
"amd" : false,
},
"globals": {
"Piano": true,
"Tone": true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
// extends: ['plugin:@typescript-eslint/recommended'],
extends: ['eslint:recommended'],
"rules": {
"dot-location" : [ "error", "property" ],
"linebreak-style": [ "error", "unix" ],
"eqeqeq" : [ "error" ],
"curly" : [ "error", "all" ],
"dot-notation" : [ "error" ],
"no-throw-literal" : [ "error" ],
"no-useless-call" : [ "error" ],
"no-unmodified-loop-condition": [ "error" ],
"quote-props" : [ "error", "as-needed" /*"as-needed"*/ ],
"quotes": [ "error","single" ],
"no-lonely-if" : [ "error" ],
"semi": [ "error", "never" ],
//STYLE
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"no-multi-spaces" : [ "error" ],
"array-bracket-spacing" : [ "error" , "never" ],
"block-spacing": [ "error", "always" ],
"func-call-spacing" : [ "error", "never" ],
"key-spacing" : [ "error", {"beforeColon" : true, "afterColon" : true} ],
"brace-style": [ "error", "1tbs" ],
"space-in-parens": [ "error", "never" ],
"eol-last": [ "error", "always" ],
"lines-between-class-members": [ "error", "always" ],
"no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 1, "maxBOF": 0} ],
"no-unneeded-ternary": [ "error" ],
"object-curly-spacing": [ "error" , "always" ],
"space-unary-ops": [ "error" , { "words" : true, "nonwords" : false } ],
"block-spacing" : ["error", "always"],
"keyword-spacing" : ["error", { "before": true }],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
"comma-spacing": ["error", { "before": false, "after": true }],
"space-before-blocks": ["error", { "functions": "never", "keywords": "never", "classes": "always" }]
}
};