mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Updated eslint whitespace rules
This commit is contained in:
parent
ebf2258715
commit
e803d208e8
51 changed files with 801 additions and 793 deletions
|
@ -45,9 +45,7 @@
|
||||||
"comma-spacing": "error",
|
"comma-spacing": "error",
|
||||||
"comma-style": "error",
|
"comma-style": "error",
|
||||||
"computed-property-spacing": "error",
|
"computed-property-spacing": "error",
|
||||||
"no-trailing-spaces": ["warn", {
|
"no-trailing-spaces": "warn",
|
||||||
"skipBlankLines": true
|
|
||||||
}],
|
|
||||||
"eol-last": "error",
|
"eol-last": "error",
|
||||||
"func-call-spacing": "error",
|
"func-call-spacing": "error",
|
||||||
"indent": ["error", 4, {
|
"indent": ["error", 4, {
|
||||||
|
@ -70,7 +68,19 @@
|
||||||
"ClassDeclaration": true,
|
"ClassDeclaration": true,
|
||||||
"ArrowFunctionExpression": true
|
"ArrowFunctionExpression": true
|
||||||
}
|
}
|
||||||
}]
|
}],
|
||||||
|
"keyword-spacing": ["error", {
|
||||||
|
"before": true,
|
||||||
|
"after": true
|
||||||
|
}],
|
||||||
|
"no-multiple-empty-lines": ["warn", {
|
||||||
|
"max": 2,
|
||||||
|
"maxEOF": 1,
|
||||||
|
"maxBOF": 0
|
||||||
|
}],
|
||||||
|
"no-whitespace-before-property": "error",
|
||||||
|
"operator-linebreak": ["error", "after"],
|
||||||
|
"space-in-parens": "error"
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
/* core/* */
|
/* core/* */
|
||||||
|
|
|
@ -1169,7 +1169,6 @@ String.prototype.count = function(chr) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Library overrides ///////////////////////////////////////////////////////////////////////////////
|
// Library overrides ///////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -243,7 +243,6 @@ var HTML = {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts an HSL color value to RGB. Conversion formula
|
* Converts an HSL color value to RGB. Conversion formula
|
||||||
* adapted from http://en.wikipedia.org/wiki/HSL_colorSpace.
|
* adapted from http://en.wikipedia.org/wiki/HSL_colorSpace.
|
||||||
|
|
|
@ -227,7 +227,7 @@ SeasonalWaiter.treeWalk = (function() {
|
||||||
while (node && node !== parent) {
|
while (node && node !== parent) {
|
||||||
if (allNodes || node.nodeType === 1) {
|
if (allNodes || node.nodeType === 1) {
|
||||||
if (fn(node) === false) {
|
if (fn(node) === false) {
|
||||||
return(false);
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If it's an element &&
|
// If it's an element &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue