feat: add nuxt-module-eslint-config
This commit is contained in:
1 parent
4e0e30dd01
commit
d29567248b
6 files changed
+1857
-2237
No files matched your search
Vendored
+2
-2
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
// Auto fix
|
// Auto fix
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true,
|
"source.fixAll.eslint": "explicit",
|
||||||
"source.organizeImports": false
|
"source.organizeImports": "never"
|
||||||
},
|
},
|
||||||
|
|
||||||
// Silent the stylistic rules in you IDE, but still auto fix them
|
// Silent the stylistic rules in you IDE, but still auto fix them
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import antfu from '@antfu/eslint-config'
|
import antfu from '@antfu/eslint-config'
|
||||||
|
import nuxt from './.nuxt/eslint.config.mjs'
|
||||||
|
|
||||||
export default antfu(
|
export default antfu(
|
||||||
{
|
{
|
||||||
unocss: true,
|
unocss: true,
|
||||||
formatters: true,
|
formatters: true,
|
||||||
},
|
},
|
||||||
|
nuxt,
|
||||||
)
|
)
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
[build.environment]
|
|
||||||
NODE_VERSION = "16"
|
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
publish = "dist"
|
publish = "dist"
|
||||||
command = "pnpm run build"
|
command = "pnpm run build"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
NODE_VERSION = "16"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/*"
|
||||||
to = "/index.html"
|
to = "/index.html"
|
||||||
|
|||||||
+10
-1
@@ -8,13 +8,13 @@ export default defineNuxtConfig({
|
|||||||
'@pinia/nuxt',
|
'@pinia/nuxt',
|
||||||
'@nuxtjs/color-mode',
|
'@nuxtjs/color-mode',
|
||||||
'@vite-pwa/nuxt',
|
'@vite-pwa/nuxt',
|
||||||
|
'nuxt-module-eslint-config',
|
||||||
],
|
],
|
||||||
|
|
||||||
experimental: {
|
experimental: {
|
||||||
// when using generate, payload js assets included in sw precache manifest
|
// when using generate, payload js assets included in sw precache manifest
|
||||||
// but missing on offline, disabling extraction it until fixed
|
// but missing on offline, disabling extraction it until fixed
|
||||||
payloadExtraction: false,
|
payloadExtraction: false,
|
||||||
inlineSSRStyles: false,
|
|
||||||
renderJsonPayloads: true,
|
renderJsonPayloads: true,
|
||||||
typedPages: true,
|
typedPages: true,
|
||||||
},
|
},
|
||||||
@@ -61,4 +61,13 @@ export default defineNuxtConfig({
|
|||||||
devtools: {
|
devtools: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
features: {
|
||||||
|
// For UnoCSS
|
||||||
|
inlineStyles: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
eslintConfig: {
|
||||||
|
setup: false,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
+13
-12
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@8.12.0",
|
"packageManager": "pnpm@8.14.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxi build",
|
"build": "nuxi build",
|
||||||
"dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
|
"dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
|
||||||
@@ -14,22 +14,23 @@
|
|||||||
"typecheck": "vue-tsc --noEmit"
|
"typecheck": "vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^2.4.4",
|
"@antfu/eslint-config": "^2.6.3",
|
||||||
"@iconify-json/carbon": "^1.1.25",
|
"@iconify-json/carbon": "^1.1.27",
|
||||||
"@iconify-json/twemoji": "^1.1.14",
|
"@iconify-json/twemoji": "^1.1.15",
|
||||||
"@nuxtjs/color-mode": "^3.3.2",
|
"@nuxtjs/color-mode": "^3.3.2",
|
||||||
"@pinia/nuxt": "^0.5.1",
|
"@pinia/nuxt": "^0.5.1",
|
||||||
"@unocss/eslint-config": "^0.58.0",
|
"@unocss/eslint-config": "^0.58.3",
|
||||||
"@unocss/nuxt": "^0.58.0",
|
"@unocss/nuxt": "^0.58.3",
|
||||||
"@vite-pwa/nuxt": "^0.3.5",
|
"@vite-pwa/nuxt": "^0.4.0",
|
||||||
"@vueuse/nuxt": "^10.7.0",
|
"@vueuse/nuxt": "^10.7.2",
|
||||||
"consola": "^3.2.3",
|
"consola": "^3.2.3",
|
||||||
"eslint": "npm:eslint-ts-patch@^8.55.0-1",
|
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
|
||||||
"eslint-plugin-format": "^0.1.0",
|
"eslint-plugin-format": "^0.1.0",
|
||||||
"eslint-ts-patch": "^8.55.0-1",
|
"eslint-ts-patch": "^8.56.0-0",
|
||||||
"nuxt": "^3.8.2",
|
"nuxt": "^3.9.3",
|
||||||
|
"nuxt-module-eslint-config": "^0.0.2",
|
||||||
"pinia": "^2.1.7",
|
"pinia": "^2.1.7",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vue-tsc": "^1.8.25"
|
"vue-tsc": "^1.8.27"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+1827
-2219
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user