Skip to content

Commit 161a548

Browse files
committed
chore: lint project
1 parent 2ee4033 commit 161a548

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

docs/nuxt.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
export default defineNuxtConfig({
2-
compatibilityDate: '2024-08-19',
32
extends: '@nuxt-themes/docus',
4-
build: { transpile: [/dist\/runtime/] },
53
modules: ['@nuxtjs/plausible'],
4+
colorMode: {
5+
preference: 'dark',
6+
},
7+
build: { transpile: [/dist\/runtime/] },
8+
compatibilityDate: '2024-08-19',
69
plausible: {
710
domain: 'ionic.nuxtjs.org',
811
apiHost: 'https://v.roe.dev',
912
},
10-
colorMode: {
11-
preference: 'dark',
12-
},
1313
})

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@
4242
"dev:prepare": "pnpm nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
4343
"docs:dev": "nuxi dev docs",
4444
"docs:build": "nuxi generate docs",
45-
"lint": "pnpm lint:all:eslint",
46-
"lint:all:eslint": "pnpm lint:eslint .",
47-
"lint:eslint": "eslint --fix",
45+
"lint": "eslint",
4846
"prepack": "pnpm build",
49-
"prepare": "husky",
47+
"prepare": "simple-git-hooks",
5048
"prepublishOnly": "pnpm lint && pnpm test",
5149
"release": "bumpp && npm publish && git push --follow-tags",
5250
"test": "vitest run --coverage",
@@ -83,13 +81,22 @@
8381
"lint-staged": "15.4.3",
8482
"nuxt": "3.15.4",
8583
"playwright-core": "1.50.1",
84+
"simple-git-hooks": "2.11.1",
8685
"typescript": "5.7.3",
8786
"unbuild": "3.3.1",
8887
"unhead": "1.11.19",
8988
"vitest": "3.0.6",
9089
"vue": "3.5.13",
9190
"vue-tsc": "2.2.2"
9291
},
92+
"lint-staged": {
93+
"*.{md,js,ts,mjs,cjs,json,.*rc}": [
94+
"npx eslint --fix"
95+
]
96+
},
97+
"simple-git-hooks": {
98+
"pre-commit": "npx lint-staged"
99+
},
93100
"resolutions": {
94101
"@nuxt/content": "2.13.4",
95102
"@nuxt/kit": "3.15.4",

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default defineNuxtConfig({
2-
compatibilityDate: '2024-08-19',
32
modules: ['@nuxtjs/ionic'],
43
css: ['~/assets/css/ionic.css'],
4+
compatibilityDate: '2024-08-19',
55
ionic: {
66
// integrations: {
77
// icons: true,

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runtime/plugins/router.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ const plugin: Plugin<{ router: Router }> = defineNuxtPlugin({
3838

3939
const history
4040
= routerOptions.history?.(routerBase)
41-
?? (import.meta.client
42-
? routerOptions.hashMode
43-
? createWebHashHistory(routerBase)
44-
: createWebHistory(routerBase)
45-
: createMemoryHistory(routerBase))
41+
?? (import.meta.client
42+
? routerOptions.hashMode
43+
? createWebHashHistory(routerBase)
44+
: createWebHistory(routerBase)
45+
: createMemoryHistory(routerBase))
4646

4747
const routes = routerOptions.routes?.(_routes) ?? _routes
4848

0 commit comments

Comments
 (0)