From 4b67fa5e78ef6b6541ee3767c116cdb69945be2c Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 3 Dec 2023 02:45:50 +0100 Subject: [PATCH] chore: disable prettier in eslint config, do not use it --- eslint.config.js | 4 ---- package.json | 1 - pnpm-lock.yaml | 39 ++------------------------------------- src/layouts/README.md | 5 ++++- 4 files changed, 6 insertions(+), 43 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index a7ad3db67..4dcc8ad58 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,9 +3,5 @@ import antfu from '@antfu/eslint-config' export default antfu( { unocss: true, - prettier: { - css: true, - html: true, - }, }, ) diff --git a/package.json b/package.json index 50fc6a957..280b4445d 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ }, "devDependencies": { "@antfu/eslint-config": "^2.2.0", - "@antfu/eslint-plugin-prettier": "5.0.1-1", "@iconify-json/carbon": "^1.1.24", "@intlify/unplugin-vue-i18n": "^1.5.0", "@types/markdown-it-link-attributes": "^3.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d2d3a437b..c216efb77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,10 +39,7 @@ dependencies: devDependencies: '@antfu/eslint-config': specifier: ^2.2.0 - version: 2.2.0(@antfu/eslint-plugin-prettier@5.0.1-1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0-beta.6) - '@antfu/eslint-plugin-prettier': - specifier: 5.0.1-1 - version: 5.0.1-1(eslint@8.55.0)(prettier@3.0.3) + version: 2.2.0(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0-beta.6) '@iconify-json/carbon': specifier: ^1.1.24 version: 1.1.24 @@ -182,7 +179,7 @@ packages: '@jridgewell/trace-mapping': 0.3.18 dev: true - /@antfu/eslint-config@2.2.0(@antfu/eslint-plugin-prettier@5.0.1-1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0-beta.6): + /@antfu/eslint-config@2.2.0(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0-beta.6): resolution: {integrity: sha512-x8KEquYsApKdBrs6TAOS49Lx9X+G1qSl00mbpTEX+AAH9kkdPJeFxMvDIhxfD3Oni1amdi+sbFRx2jd+OWtHng==} hasBin: true peerDependencies: @@ -205,7 +202,6 @@ packages: optional: true dependencies: '@antfu/eslint-define-config': 1.23.0-2 - '@antfu/eslint-plugin-prettier': 5.0.1-1(eslint@8.55.0)(prettier@3.0.3) '@antfu/install-pkg': 0.3.1 '@eslint-types/jsdoc': 46.8.2-1 '@eslint-types/typescript-eslint': 6.12.0 @@ -255,26 +251,6 @@ packages: engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>= 8.6.0'} dev: true - /@antfu/eslint-plugin-prettier@5.0.1-1(eslint@8.55.0)(prettier@3.0.3): - resolution: {integrity: sha512-Bmmb7SXmdrsPT/hPProT6UvPV0vvojq0kTA5KsKbFbFnMazrjYOT9rHffpSLHWlM6uCzF6OfolI0Cay5T+I6fg==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - '@types/eslint': '>=8.0.0' - eslint: '>=8.0.0' - eslint-config-prettier: '*' - prettier: '>=3.0.0' - peerDependenciesMeta: - '@types/eslint': - optional: true - eslint-config-prettier: - optional: true - dependencies: - eslint: 8.55.0 - prettier: 3.0.3 - prettier-linter-helpers: 1.0.0 - synckit: 0.8.5 - dev: true - /@antfu/install-pkg@0.1.1: resolution: {integrity: sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==} dependencies: @@ -6404,10 +6380,6 @@ packages: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} dev: true - /fast-diff@1.3.0: - resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} - dev: true - /fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -8922,13 +8894,6 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier-linter-helpers@1.0.0: - resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} - engines: {node: '>=6.0.0'} - dependencies: - fast-diff: 1.3.0 - dev: true - /prettier@3.0.3: resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} diff --git a/src/layouts/README.md b/src/layouts/README.md index 515e07574..762d85ed0 100644 --- a/src/layouts/README.md +++ b/src/layouts/README.md @@ -7,5 +7,8 @@ By default, `default.vue` will be used unless an alternative is specified in the With [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) and [`vite-plugin-vue-layouts`](https://github.com/JohnCampionJr/vite-plugin-vue-layouts), you can specify the layout in the page's SFCs like this: ```html - meta: layout: home + +meta: + layout: home + ```