From ebfed17fecaa2e7bbf0740ab7411cbf116e3d042 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 5 Mar 2018 15:51:38 -0800 Subject: tools: enable ESLint quote-props rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/pull/19100#discussion_r171993685 PR-URL: https://github.com/nodejs/node/pull/19156 Reviewed-By: Gus Caplan Reviewed-By: Ruben Bridgewater Reviewed-By: Teddy Katz Reviewed-By: Vse Mozhet Byt Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: Roman Reiss --- .eslintrc.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js index 6a378f659c..2250fdba77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -58,12 +58,12 @@ module.exports = { 'dot-location': ['error', 'property'], 'dot-notation': 'error', 'eol-last': 'error', - eqeqeq: ['error', 'smart'], + 'eqeqeq': ['error', 'smart'], 'for-direction': 'error', 'func-call-spacing': 'error', 'func-name-matching': 'error', 'func-style': ['error', 'declaration', { allowArrowFunctions: true }], - indent: ['error', 2, { + 'indent': ['error', 2, { ArrayExpression: 'first', CallExpression: { arguments: 'first' }, FunctionDeclaration: { parameters: 'first' }, @@ -209,9 +209,10 @@ module.exports = { 'one-var-declaration-per-line': 'error', 'operator-linebreak': ['error', 'after'], 'prefer-const': ['error', { ignoreReadBeforeAssign: true }], - quotes: ['error', 'single', { avoidEscape: true }], + 'quotes': ['error', 'single', { avoidEscape: true }], + 'quote-props': ['error', 'consistent'], 'rest-spread-spacing': 'error', - semi: 'error', + 'semi': 'error', 'semi-spacing': 'error', 'space-before-blocks': ['error', 'always'], 'space-before-function-paren': ['error', { @@ -222,7 +223,7 @@ module.exports = { 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', 'space-unary-ops': 'error', - strict: ['error', 'global'], + 'strict': ['error', 'global'], 'symbol-description': 'error', 'template-curly-spacing': 'error', 'unicode-bom': 'error', -- cgit v1.2.3