diff --git a/package.json b/package.json index 95de8f7..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", @@ -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 diff --git a/templates/_prettierrc.json.ejs b/templates/_prettierrc.json.ejs index 7cdc4f7..0fbb6e1 100644 --- a/templates/_prettierrc.json.ejs +++ b/templates/_prettierrc.json.ejs @@ -1,38 +1,26 @@ <%_ 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 { _%> <%# - 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 } <%_ } _%>