diff options
author | Rich Trott <rtrott@gmail.com> | 2017-07-21 00:36:08 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-07-28 01:07:02 +0300 |
commit | d11840c180db5f27d9361c9f7ce06de6dea421e6 (patch) | |
tree | 590de2b31c53d0d51c2f2c238907799af1b4495d /.eslintrc.yaml | |
parent | 9e5a08884a222ac23fef70bca46369676e6af6ad (diff) |
tools: enable stricter linting in lib directory
Enable ESLint 4.x linting and disable legacy linting in the lib
directory.
While doing this, some indentation in the .eslintrc.yaml file itself was
noticed to be incorrect. Fixed that too.
Backport-PR-URL: https://github.com/nodejs/node/pull/14520
Backport-Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: https://github.com/nodejs/node/pull/14403
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 5e025301fe8..0ba050d4c60 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -102,17 +102,17 @@ rules: func-name-matching: error func-style: [error, declaration, {allowArrowFunctions: true}] # indent: [error, 2, {ArrayExpression: first, - # CallExpression: {arguments: first}, - # FunctionDeclaration: {parameters: first}, - # FunctionExpression: {parameters: first}, - # MemberExpression: off, - # ObjectExpression: first, - # SwitchCase: 1}] + # CallExpression: {arguments: first}, + # FunctionDeclaration: {parameters: first}, + # FunctionExpression: {parameters: first}, + # MemberExpression: off, + # ObjectExpression: first, + # SwitchCase: 1}] indent-legacy: [error, 2, {ArrayExpression: first, - CallExpression: {arguments: first}, - MemberExpression: 1, - ObjectExpression: first, - SwitchCase: 1}] + CallExpression: {arguments: first}, + MemberExpression: 1, + ObjectExpression: first, + SwitchCase: 1}] key-spacing: [error, {mode: minimum}] keyword-spacing: error linebreak-style: [error, unix] |