Tone.js/.eslintrc.js

58 lines
2 KiB
JavaScript
Raw Normal View History

2017-10-26 19:10:52 +00:00
module.exports = {
"env": {
"browser": true,
"es6": true,
2018-03-05 17:25:33 +00:00
"amd" : true,
2018-05-18 16:15:37 +00:00
"node" : true,
2018-03-05 17:25:33 +00:00
"mocha": true
},
2019-01-08 05:16:54 +00:00
"plugins": [
"html"
],
2018-03-05 17:25:33 +00:00
"globals": {
2018-08-28 14:07:17 +00:00
"expect": true,
"Tone": true,
"Interface": true
2018-08-27 01:57:33 +00:00
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
2017-10-26 19:10:52 +00:00
},
"extends": "eslint:recommended",
"rules": {
2017-11-29 21:29:04 +00:00
"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" ],
2018-08-31 04:14:21 +00:00
"quote-props" : [ "error", "consistent" ],
2017-11-29 21:29:04 +00:00
"quotes": [ "error","double" ],
"no-lonely-if" : [ "error" ],
"semi": [ "error", "always" ],
2018-06-20 19:12:02 +00:00
"no-cond-assign" : ["error", "always"],
2017-11-29 21:29:04 +00:00
//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 } ],
2018-01-02 15:37:27 +00:00
"block-spacing" : ["error", "always"],
"keyword-spacing" : ["error", { "before": true }],
2018-08-27 01:57:33 +00:00
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}],
2018-03-05 17:25:33 +00:00
"comma-spacing": ["error", { "before": false, "after": true }],
2018-05-20 21:40:42 +00:00
"space-before-blocks": ["error", { "functions": "never", "keywords": "never", "classes": "always" }]
2017-10-26 19:10:52 +00:00
}
};