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:
Tao Zhou
2020-07-30 11:07:54 +02:00
parent c574c09a9b
commit 3bf5c76c12
2 changed files with 18 additions and 13 deletions

View File

@@ -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",