From 888c37d264880e64818b5807eb5e9752e0291ab5 Mon Sep 17 00:00:00 2001 From: William Archinal Date: Fri, 2 Feb 2018 13:34:01 +1100 Subject: [PATCH] Change dangling comma policy (#18) * Always require comma dangle on multiline * Change version to 7, as the rule change will break existing builds --- package.json | 2 +- resources/.eslintrc-standards.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 70964e2..eb862ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fs-default-project-config", - "version": "6.1.3", + "version": "7.0.0", "description": "Repo containing commons fox sports project linting configs and editor settings", "main": "index.js", "scripts": { diff --git a/resources/.eslintrc-standards.js b/resources/.eslintrc-standards.js index f486e09..83dea0d 100644 --- a/resources/.eslintrc-standards.js +++ b/resources/.eslintrc-standards.js @@ -153,7 +153,7 @@ module.exports = { "brace-style": ["error", "1tbs", {"allowSingleLine": true}], // enforce consistent brace style for blocks "camelcase": ["error", {properties: "never"}], // enforce camelcase naming convention "capitalized-comments": "off", // enforce or disallow capitalization of the first letter of a comment - "comma-dangle": "error", // require or disallow trailing commas + "comma-dangle": ["error", "always-multiline"], // require or disallow trailing commas "comma-spacing": "error", // enforce consistent spacing before and after commas "comma-style": "error", // enforce consistent comma style "computed-property-spacing": "error", // enforce consistent spacing inside computed property brackets