Update module tooling

This commit is contained in:
Jarek Rozanski 2025-01-02 22:46:27 +01:00
parent f52bec681c
commit 787a1fd57f
4 changed files with 802 additions and 696 deletions

20
eslint.config.mjs Normal file
View file

@ -0,0 +1,20 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
})
.append(
// your custom flat config here...
)

1457
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -30,14 +30,12 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch"
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint ."
},
"dependencies": {
"@nuxt/kit": "^3.13.2",
@ -51,8 +49,8 @@
"@nuxt/test-utils": "^3.12.0",
"@types/node": "^18",
"changelogen": "^0.5.3",
"eslint": "^8.39.0",
"eslint": "^9.17.0",
"nuxt": "^3.13.2",
"vitest": "^1.4.0"
"typescript": "~5.7.2"
}
}

View file

@ -1,3 +1,8 @@
{
"extends": "./playground/.nuxt/tsconfig.json"
"extends": "./.nuxt/tsconfig.json",
"exclude": [
"dist",
"node_modules",
"playground",
]
}