Add no-trailing-spaces and no-irregular-whitespace
Rules: 1. https://eslint.org/docs/rules/no-trailing-spaces 2. https://eslint.org/docs/rules/no-irregular-whitespace Change-Id: I980612517ce599147dadfe7ba587bc221350c245
This commit is contained in:
@@ -92,7 +92,12 @@ module.exports = {
|
|||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
// https://eslint.org/docs/rules/no-redeclare
|
// https://eslint.org/docs/rules/no-redeclare
|
||||||
"no-redeclare": "off",
|
"no-redeclare": "off",
|
||||||
'array-callback-return': ['error', { allowImplicit: true }],
|
// https://eslint.org/docs/rules/no-trailing-spaces
|
||||||
|
"no-trailing-spaces": "error",
|
||||||
|
// https://eslint.org/docs/rules/no-irregular-whitespace
|
||||||
|
"no-irregular-whitespace": "error",
|
||||||
|
// https://eslint.org/docs/rules/array-callback-return
|
||||||
|
"array-callback-return": ['error', { allowImplicit: true }],
|
||||||
// https://eslint.org/docs/rules/no-restricted-syntax
|
// https://eslint.org/docs/rules/no-restricted-syntax
|
||||||
"no-restricted-syntax": [
|
"no-restricted-syntax": [
|
||||||
"error",
|
"error",
|
||||||
|
|||||||
Reference in New Issue
Block a user