From 924e913ce9fdb81a557895866269ea05957d8fcc Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 4 Dec 2023 18:03:25 +0100 Subject: [PATCH] chore: enable also toml formatting --- eslint.config.js | 6 +----- netlify.toml | 18 +++++++++--------- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index a99818162..b0f3d78c4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,10 +3,6 @@ import antfu from '@antfu/eslint-config' export default antfu( { unocss: true, - formatters: { - html: true, - css: true, - markdown: true, - }, + formatters: true, }, ) diff --git a/netlify.toml b/netlify.toml index becc5cc5a..cff88d568 100755 --- a/netlify.toml +++ b/netlify.toml @@ -1,16 +1,16 @@ [build.environment] - NODE_VERSION = "20" +NODE_VERSION = "20" [build] - publish = "dist" - command = "pnpm run build" +publish = "dist" +command = "pnpm run build" [[redirects]] - from = "/*" - to = "/index.html" - status = 200 +from = "/*" +to = "/index.html" +status = 200 [[headers]] - for = "/manifest.webmanifest" - [headers.values] - Content-Type = "application/manifest+json" +for = "/manifest.webmanifest" +[headers.values] +Content-Type = "application/manifest+json" diff --git a/package.json b/package.json index e541af328..89d8c7d22 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "vue-router": "^4.2.5" }, "devDependencies": { - "@antfu/eslint-config": "^2.3.0", + "@antfu/eslint-config": "^2.3.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 f151303af..1077c33bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,8 +38,8 @@ dependencies: devDependencies: '@antfu/eslint-config': - specifier: ^2.3.0 - version: 2.3.0(eslint-plugin-format@0.0.1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0) + specifier: ^2.3.1 + version: 2.3.1(eslint-plugin-format@0.0.1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0) '@iconify-json/carbon': specifier: ^1.1.24 version: 1.1.24 @@ -182,8 +182,8 @@ packages: '@jridgewell/trace-mapping': 0.3.18 dev: true - /@antfu/eslint-config@2.3.0(eslint-plugin-format@0.0.1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0): - resolution: {integrity: sha512-7y4b2gScvNRKYTYpsK2XcwTmSAvkMv/4f1JSYWFuJ8Rxpmp56v802G3Xoz+6kXn98T1WJcV0oWSkIa45pGYZ6A==} + /@antfu/eslint-config@2.3.1(eslint-plugin-format@0.0.1)(eslint@8.55.0)(typescript@5.3.2)(vitest@1.0.0): + resolution: {integrity: sha512-GWPvFxzf1wqfRs3PPzAosTRVLGAT7Nf4IHrpXUClFg3075TceHhfrc2SMt/q0fwKFy/pMzGtf0g4e/8xR8Fq5A==} hasBin: true peerDependencies: '@unocss/eslint-plugin': '>=0.50.0' @@ -8567,7 +8567,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.23.4 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4