mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
54 lines
2 KiB
JavaScript
54 lines
2 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"amd" : true,
|
|
"node" : true,
|
|
"mocha": true
|
|
},
|
|
"globals": {
|
|
"expect": true
|
|
},
|
|
"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", "consistent" /*"as-needed"*/ ],
|
|
"quotes": [ "error","double" ],
|
|
"no-lonely-if" : [ "error" ],
|
|
"semi": [ "error", "always" ],
|
|
//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", "never"],
|
|
"comma-spacing": ["error", { "before": false, "after": true }],
|
|
"space-before-blocks": ["error", "never"]
|
|
// "one-var-declaration-per-line": [ "error" , "always" ],
|
|
// "object-curly-newline": [ "error" , { "multiline": true }],
|
|
// "array-bracket-newline": [ "error" , "always" ],
|
|
// "no-use-before-define" : [ "error" ],
|
|
// "valid-jsdoc": [ "error" ],
|
|
// "lines-around-comment" : [ "error", {"beforeBlockComment": true} ],
|
|
// "no-template-curly-in-string" : [ "error" ],
|
|
}
|
|
};
|