From 2378e2f33d60d98a2969491717a5fceb1d507098 Mon Sep 17 00:00:00 2001 From: Anton Lilleby Date: Sat, 17 Feb 2024 12:35:30 +0100 Subject: [PATCH] refactor(config): Remove redundant options to align with schemastore defaults Also fixes the regression introduced in https://github.com/vuejs/create-eslint-config/commit/1d657db63bf500c0d8979cd5818d3dc1a9c23498 that the standard prettier config omits `"trailingComma": "none"` and got an extraneous printWidth option. --- templates/_prettierrc.json.ejs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/templates/_prettierrc.json.ejs b/templates/_prettierrc.json.ejs index 3467db5..0fbb6e1 100644 --- a/templates/_prettierrc.json.ejs +++ b/templates/_prettierrc.json.ejs @@ -1,28 +1,16 @@ <%_ if (styleGuide === 'airbnb') { _%> { "$schema": "https://json.schemastore.org/prettierrc", - "arrowParens": "always", - "bracketSameLine": false, - "bracketSpacing": true, - "endOfLine": "lf", - "jsxSingleQuote": false, "printWidth": 100, - "proseWrap": "preserve", - "quoteProps": "as-needed", - "semi": true, - "singleQuote": true, - "tabWidth": 2, - "trailingComma": "all", - "useTabs": false + "singleQuote": true } <%_ } else if (styleGuide === 'standard') { _%> { "$schema": "https://json.schemastore.org/prettierrc", "semi": false, - "tabWidth": 2, "singleQuote": true, - "printWidth": 100, - "trailingComma": "all" + "jsxSingleQuote": true, + "trailingComma": "none" } <%_ } else { _%> <%#