Update module tooling
This commit is contained in:
parent
f52bec681c
commit
787a1fd57f
4 changed files with 802 additions and 696 deletions
20
eslint.config.mjs
Normal file
20
eslint.config.mjs
Normal 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...
|
||||||
|
)
|
1401
package-lock.json
generated
1401
package-lock.json
generated
File diff suppressed because it is too large
Load diff
14
package.json
14
package.json
|
@ -30,14 +30,12 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepack": "nuxt-module-build",
|
"prepack": "nuxt-module-build build",
|
||||||
"dev": "nuxi dev playground",
|
"dev": "nuxi dev playground",
|
||||||
"dev:build": "nuxi build playground",
|
"dev:build": "nuxi build playground",
|
||||||
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
||||||
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
||||||
"lint": "eslint .",
|
"lint": "eslint ."
|
||||||
"test": "vitest run",
|
|
||||||
"test:watch": "vitest watch"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/kit": "^3.13.2",
|
"@nuxt/kit": "^3.13.2",
|
||||||
|
@ -51,8 +49,8 @@
|
||||||
"@nuxt/test-utils": "^3.12.0",
|
"@nuxt/test-utils": "^3.12.0",
|
||||||
"@types/node": "^18",
|
"@types/node": "^18",
|
||||||
"changelogen": "^0.5.3",
|
"changelogen": "^0.5.3",
|
||||||
"eslint": "^8.39.0",
|
"eslint": "^9.17.0",
|
||||||
"nuxt": "^3.13.2",
|
"nuxt": "^3.13.2",
|
||||||
"vitest": "^1.4.0"
|
"typescript": "~5.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "./playground/.nuxt/tsconfig.json"
|
"extends": "./.nuxt/tsconfig.json",
|
||||||
|
"exclude": [
|
||||||
|
"dist",
|
||||||
|
"node_modules",
|
||||||
|
"playground",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue