diff --git a/.eslintignore b/.eslintignore index bd85fff8e4..26f48161f7 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,6 +5,7 @@ test/fixtures test/disabled test/tmp*/ tools/eslint +tools/icu node_modules benchmark/tmp/ doc/**/*.js diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 5e025301fe..b956f3e5a2 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -135,6 +135,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] @@ -142,9 +143,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 a112e0f54c..992b79107e 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