chore(lint): disallow trailing spaces

+ format lint rules
+ fix lint error
This commit is contained in:
Nico Rehwaldt 2018-01-24 11:41:57 +01:00
parent 37a06a378d
commit 49cc8dc7ea
2 changed files with 19 additions and 18 deletions

View File

@ -1,34 +1,35 @@
{
"rules": {
"indent": [ 2, 2, { "VariableDeclarator": { "const": 3, "let": 2, "var": 2 } } ],
"keyword-spacing": [ 2 ],
"object-curly-spacing": [ 2, "always"],
"space-before-blocks": [ 2, "always"],
"indent": [ 2, 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } } ],
"no-unused-vars": [ 2, { "args": "none" } ],
"space-before-function-paren": [ 2, "never" ],
"quotes": [ 2, "single" ],
"semi": [ 2, "always" ],
"mocha/no-exclusive-tests": 2,
"no-console": 0,
"mocha/no-exclusive-tests": 2
"no-unused-vars": [ 2, { "args": "none" } ],
"no-trailing-spaces": [ 2 ],
"object-curly-spacing": [ 2, "always"],
"semi": [ 2, "always" ],
"space-before-blocks": [ 2, "always"],
"space-before-function-paren": [ 2, "never" ],
"quotes": [ 2, "single" ]
},
"env": {
"node": true,
"browser": true
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
"ecmaVersion": 5
},
"plugins": [
"mocha"
],
"globals": {
"expect": false,
"it": false,
"describe": false,
"beforeEach": true,
"after": true,
"afterEach": true,
"before": true,
"after": true
"beforeEach": true,
"describe": false,
"expect": false,
"it": false
}
}

View File

@ -5,8 +5,8 @@ var filter = require('lodash/collection/filter');
var isAny = require('../modeling/util/ModelingUtil').isAny;
/**
* Registers element exclude filters for elements that currently do
* not support distribution.
* Registers element exclude filters for elements that
* currently do not support distribution.
*/
function BpmnDistributeElements(distributeElements) {