diff --git a/.eslintignore b/.eslintignore index 38d3367e9d1779..a681716c667576 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,6 +4,7 @@ test/addons/??_*/ test/fixtures test/tmp*/ tools/eslint +tools/icu node_modules benchmark/tmp/ doc/**/*.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 6643b4649d0da5..b68d26574658c5 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -141,6 +141,7 @@ rules: }] no-tabs: error no-trailing-spaces: error + object-curly-spacing: [error, always] one-var-declaration-per-line: error operator-linebreak: [error, after] quotes: [error, single, avoid-escape] @@ -148,9 +149,9 @@ rules: semi-spacing: error space-before-blocks: [error, always] space-before-function-paren: [error, { - "anonymous": "never", - "named": "never", - "asyncArrow": "always" + anonymous: never, + named: never, + asyncArrow: always }] space-in-parens: [error, never] space-infix-ops: error diff --git a/doc/.eslintrc.yaml b/doc/.eslintrc.yaml index 1c5177d90642ad..b269eb14e625f4 100644 --- a/doc/.eslintrc.yaml +++ b/doc/.eslintrc.yaml @@ -1,8 +1,6 @@ ## Docs-specific linter rules rules: - object-curly-spacing: [error, always] - # ease some restrictions in doc examples no-restricted-properties: off no-undef: off