summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-03-05 15:51:38 -0800
committerRich Trott <rtrott@gmail.com>2018-03-07 19:08:19 -0800
commitebfed17fecaa2e7bbf0740ab7411cbf116e3d042 (patch)
tree4e08a7e8ebeacba45ac5a16440c07c7e0071b4ad /.eslintrc.js
parent3c31bfff6599cf68bda2552a92d982559bd64c5e (diff)
downloadandroid-node-v8-ebfed17fecaa2e7bbf0740ab7411cbf116e3d042.tar.gz
android-node-v8-ebfed17fecaa2e7bbf0740ab7411cbf116e3d042.tar.bz2
android-node-v8-ebfed17fecaa2e7bbf0740ab7411cbf116e3d042.zip
tools: enable ESLint quote-props rule
Refs: https://github.com/nodejs/node/pull/19100#discussion_r171993685 PR-URL: https://github.com/nodejs/node/pull/19156 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js11
1 files changed, 6 insertions, 5 deletions
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',