diff options
author | Rich Trott <rtrott@gmail.com> | 2017-06-13 06:46:27 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-06-21 23:43:32 +0300 |
commit | ff568d4b6377c9a6a10058af3b1a92ee15534fcf (patch) | |
tree | 024ee752a99df48dd877022de8e8d62348ecf13a /.eslintrc.yaml | |
parent | 2ce236e1739277788af6a353d0a4c845d45515ea (diff) |
tools: update ESLint to v4.0.0
Update ESLint and configuration to version 4.0.0.
PR-URL: https://github.com/nodejs/node/pull/13645
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 9167f21c5dd..d8442ff3a18 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -40,7 +40,7 @@ rules: eqeqeq: [2, smart] no-fallthrough: 2 no-global-assign: 2 - no-multi-spaces: 2 + no-multi-spaces: [2, {ignoreEOLComments: true}] no-octal: 2 no-proto: 2 no-redeclare: 2 @@ -98,11 +98,18 @@ rules: func-call-spacing: 2 func-name-matching: 2 func-style: [2, declaration, {allowArrowFunctions: true}] - indent: [2, 2, {ArrayExpression: first, - CallExpression: {arguments: first}, - MemberExpression: 1, - ObjectExpression: first, - SwitchCase: 1}] + # indent: [2, 2, {ArrayExpression: first, + # CallExpression: {arguments: first}, + # FunctionDeclaration: {parameters: first}, + # FunctionExpression: {parameters: first}, + # MemberExpression: off, + # ObjectExpression: first, + # SwitchCase: 1}] + indent-legacy: [2, 2, {ArrayExpression: first, + CallExpression: {arguments: first}, + MemberExpression: 1, + ObjectExpression: first, + SwitchCase: 1}] key-spacing: [2, {mode: minimum}] keyword-spacing: 2 linebreak-style: [2, unix] @@ -122,7 +129,7 @@ rules: }, { selector: "ThrowStatement > CallExpression[callee.name=/Error$/]", message: "Use new keyword when throwing an Error." - }] + }] no-tabs: 2 no-trailing-spaces: 2 one-var-declaration-per-line: 2 @@ -131,7 +138,11 @@ rules: semi: 2 semi-spacing: 2 space-before-blocks: [2, always] - space-before-function-paren: [2, never] + space-before-function-paren: [2, { + "anonymous": "never", + "named": "never", + "asyncArrow": "always" + }] space-in-parens: [2, never] space-infix-ops: 2 space-unary-ops: 2 |