From d1fe363949e96b47e972192d179175b8d9d1fd92 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:10:16 +0800 Subject: [PATCH 1/4] chore(deps): update all non-major dependencies (#32) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 6 +++--- pnpm-lock.yaml | 32 ++++++++++++++++---------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 95de8f7..1b5d186 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,11 @@ }, "devDependencies": { "@eslint/js": "^9.13.0", - "@types/node": "^22.7.7", + "@types/node": "^22.7.9", "@vue/eslint-config-prettier": "^10.0.0", - "@vue/eslint-config-typescript": "^14.1.1", + "@vue/eslint-config-typescript": "^14.1.3", "eslint": "^9.13.0", - "eslint-plugin-vue": "^9.29.0", + "eslint-plugin-vue": "^9.29.1", "prettier": "^3.3.3", "typescript": "~5.6.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b720d7..7c0009a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,20 +22,20 @@ importers: specifier: ^9.13.0 version: 9.13.0 '@types/node': - specifier: ^22.7.7 - version: 22.7.7 + specifier: ^22.7.9 + version: 22.7.9 '@vue/eslint-config-prettier': specifier: ^10.0.0 version: 10.0.0(eslint@9.13.0)(prettier@3.3.3) '@vue/eslint-config-typescript': - specifier: ^14.1.1 - version: 14.1.1(@typescript-eslint/parser@8.8.1(eslint@9.13.0)(typescript@5.6.3))(eslint-plugin-vue@9.29.0(eslint@9.13.0))(eslint@9.13.0)(typescript@5.6.3) + specifier: ^14.1.3 + version: 14.1.3(@typescript-eslint/parser@8.8.1(eslint@9.13.0)(typescript@5.6.3))(eslint-plugin-vue@9.29.1(eslint@9.13.0))(eslint@9.13.0)(typescript@5.6.3) eslint: specifier: ^9.13.0 version: 9.13.0 eslint-plugin-vue: - specifier: ^9.29.0 - version: 9.29.0(eslint@9.13.0) + specifier: ^9.29.1 + version: 9.29.1(eslint@9.13.0) prettier: specifier: ^3.3.3 version: 3.3.3 @@ -117,8 +117,8 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@22.7.7': - resolution: {integrity: sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==} + '@types/node@22.7.9': + resolution: {integrity: sha512-jrTfRC7FM6nChvU7X2KqcrgquofrWLFDeYC1hKfwNWomVvrn7JIksqf344WN2X/y8xrgqBd2dJATZV4GbatBfg==} '@typescript-eslint/eslint-plugin@8.8.1': resolution: {integrity: sha512-xfvdgA8AP/vxHgtgU310+WBnLB4uJQ9XdyP17RebG26rLtDrQJV3ZYrcopX91GrHmMoH8bdSwMRh2a//TiJ1jQ==} @@ -183,8 +183,8 @@ packages: eslint: '>= 8.21.0' prettier: '>= 3.0.0' - '@vue/eslint-config-typescript@14.1.1': - resolution: {integrity: sha512-zw6q8pXUuFHfdZsdKYr344giBRhnq6WmWSO2abFHajxR8wDX2p2hkj0/Mf6W2phTkerU4b8WF2jgq2Z/c+PdMA==} + '@vue/eslint-config-typescript@14.1.3': + resolution: {integrity: sha512-L4NUJQz/0We2QYtrNwRAGRy4KfpOagl5V3MpZZ+rQ51a+bKjlKYYrugi7lp7PIX8LolRgu06ZwDoswnSGWnAmA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^9.10.0 @@ -313,8 +313,8 @@ packages: eslint-config-prettier: optional: true - eslint-plugin-vue@9.29.0: - resolution: {integrity: sha512-hamyjrBhNH6Li6R1h1VF9KHfshJlKgKEg3ARbGTn72CMNDSMhWbgC7NdkRDEh25AFW+4SDATzyNM+3gWuZii8g==} + eslint-plugin-vue@9.29.1: + resolution: {integrity: sha512-MH/MbVae4HV/tM8gKAVWMPJbYgW04CK7SuzYRrlNERpxbO0P3+Zdsa2oAcFBW6xNu7W6lIkGOsFAMCRTYmrlWQ==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -758,7 +758,7 @@ snapshots: '@types/json-schema@7.0.15': {} - '@types/node@22.7.7': + '@types/node@22.7.9': dependencies: undici-types: 6.19.8 @@ -852,11 +852,11 @@ snapshots: transitivePeerDependencies: - '@types/eslint' - '@vue/eslint-config-typescript@14.1.1(@typescript-eslint/parser@8.8.1(eslint@9.13.0)(typescript@5.6.3))(eslint-plugin-vue@9.29.0(eslint@9.13.0))(eslint@9.13.0)(typescript@5.6.3)': + '@vue/eslint-config-typescript@14.1.3(@typescript-eslint/parser@8.8.1(eslint@9.13.0)(typescript@5.6.3))(eslint-plugin-vue@9.29.1(eslint@9.13.0))(eslint@9.13.0)(typescript@5.6.3)': dependencies: '@typescript-eslint/eslint-plugin': 8.8.1(@typescript-eslint/parser@8.8.1(eslint@9.13.0)(typescript@5.6.3))(eslint@9.13.0)(typescript@5.6.3) eslint: 9.13.0 - eslint-plugin-vue: 9.29.0(eslint@9.13.0) + eslint-plugin-vue: 9.29.1(eslint@9.13.0) fast-glob: 3.3.2 typescript-eslint: 8.8.1(eslint@9.13.0)(typescript@5.6.3) vue-eslint-parser: 9.4.3(eslint@9.13.0) @@ -961,7 +961,7 @@ snapshots: optionalDependencies: eslint-config-prettier: 9.1.0(eslint@9.13.0) - eslint-plugin-vue@9.29.0(eslint@9.13.0): + eslint-plugin-vue@9.29.1(eslint@9.13.0): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0) eslint: 9.13.0 From 5c931554667df70f7b551e8a53de65bfd3d50dc5 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 25 Oct 2024 16:30:24 +0800 Subject: [PATCH 2/4] feat!: align the default prettier style with `create-vue` instead of vue core After all, `vuejs/core` is more of a TypeScript project than a Vue project. I feel that we really need `printWidth: 100` for templates. And `arrowParens` isn't that important. Let's use the default value. Moreover, as stated in [prettier's documentation](https://prettier.io/docs/en/options#arrow-function-parentheses), `arrowParens: "always"` is better for adding type annotations, extra arguments or default values as well as making other changes. I believe that `arrowParens: "avoid"` is set in `vuejs/core` only because it started using prettier in its 1.x era and want to avoid too drastic style changes. https://github.com/vuejs/core/pull/3926#discussion_r655230445 --- templates/_prettierrc.json.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/_prettierrc.json.ejs b/templates/_prettierrc.json.ejs index 7cdc4f7..3467db5 100644 --- a/templates/_prettierrc.json.ejs +++ b/templates/_prettierrc.json.ejs @@ -26,13 +26,13 @@ } <%_ } else { _%> <%# - The default style follows the one used in the vuejs/core repository - + The default style follows the one used in the vuejs/create-vue repository + %> { "$schema": "https://json.schemastore.org/prettierrc", "semi": false, "singleQuote": true, - "arrowParens": "avoid" + "printWidth": 100 } <%_ } _%> From 2378e2f33d60d98a2969491717a5fceb1d507098 Mon Sep 17 00:00:00 2001 From: Anton Lilleby Date: Sat, 17 Feb 2024 12:35:30 +0100 Subject: [PATCH 3/4] 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 { _%> <%# From 2291947ddc96e3fe61713098465e289352220760 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 25 Oct 2024 17:10:44 +0800 Subject: [PATCH 4/4] 0.5.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1b5d186..26e2ce7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vue/create-eslint-config", - "version": "0.4.3", + "version": "0.5.0", "description": "Utility to setup ESLint in Vue.js projects.", "type": "module", "main": "index.js",