From 7b1ced2bf79cfe119ab1b7becd096b88b9250ee7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 20 Jan 2018 23:35:21 -0800 Subject: [PATCH] [eslint config] [base] [deps] update `eslint` --- .../eslint-config-airbnb-base/package.json | 4 ++-- .../eslint-config-airbnb-base/rules/style.js | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/eslint-config-airbnb-base/package.json b/packages/eslint-config-airbnb-base/package.json index 83565bba..5d4cd5cc 100644 --- a/packages/eslint-config-airbnb-base/package.json +++ b/packages/eslint-config-airbnb-base/package.json @@ -51,7 +51,7 @@ "babel-preset-airbnb": "^2.4.0", "babel-tape-runner": "^2.0.1", "editorconfig-tools": "^0.1.1", - "eslint": "^4.15.0", + "eslint": "^4.16.0", "eslint-find-rules": "^3.1.1", "eslint-plugin-import": "^2.8.0", "in-publish": "^2.0.0", @@ -59,7 +59,7 @@ "tape": "^4.8.0" }, "peerDependencies": { - "eslint": "^4.15.0", + "eslint": "^4.16.0", "eslint-plugin-import": "^2.8.0" }, "engines": { diff --git a/packages/eslint-config-airbnb-base/rules/style.js b/packages/eslint-config-airbnb-base/rules/style.js index 5566ce70..81ee87a4 100644 --- a/packages/eslint-config-airbnb-base/rules/style.js +++ b/packages/eslint-config-airbnb-base/rules/style.js @@ -51,7 +51,21 @@ module.exports = { 'comma-spacing': ['error', { before: false, after: true }], // enforce one true comma style - 'comma-style': ['error', 'last'], + 'comma-style': ['error', 'last', { + exceptions: { + ArrayExpression: false, + ArrayPattern: false, + ArrowFunctionExpression: false, + CallExpression: false, + FunctionDeclaration: false, + FunctionExpression: false, + ImportDeclaration: false, + ObjectExpression: false, + ObjectPattern: false, + VariableDeclaration: false, + NewExpression: false, + } + }], // disallow padding inside computed properties 'computed-property-spacing': ['error', 'never'], @@ -375,7 +389,7 @@ module.exports = { // enforce "same line" or "multiple line" on object properties. // https://eslint.org/docs/rules/object-property-newline 'object-property-newline': ['error', { - allowMultiplePropertiesPerLine: true, + allowAllPropertiesOnSameLine: true, }], // allow just one var statement per function