Skip to content

Commit

Permalink
feat: add nuxt-module-eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 19, 2024
1 parent 4e0e30d commit d295672
Show file tree
Hide file tree
Showing 6 changed files with 1,848 additions and 2,228 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Expand Up @@ -12,8 +12,8 @@

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.ts
@@ -1,8 +1,10 @@
import antfu from '@antfu/eslint-config'
import nuxt from './.nuxt/eslint.config.mjs'

export default antfu(
{
unocss: true,
formatters: true,
},
nuxt,
)
6 changes: 3 additions & 3 deletions netlify.toml
@@ -1,10 +1,10 @@
[build.environment]
NODE_VERSION = "16"

[build]
publish = "dist"
command = "pnpm run build"

[build.environment]
NODE_VERSION = "16"

[[redirects]]
from = "/*"
to = "/index.html"
Expand Down
11 changes: 10 additions & 1 deletion nuxt.config.ts
Expand Up @@ -8,13 +8,13 @@ export default defineNuxtConfig({
'@pinia/nuxt',
'@nuxtjs/color-mode',
'@vite-pwa/nuxt',
'nuxt-module-eslint-config',
],

experimental: {
// when using generate, payload js assets included in sw precache manifest
// but missing on offline, disabling extraction it until fixed
payloadExtraction: false,
inlineSSRStyles: false,
renderJsonPayloads: true,
typedPages: true,
},
Expand Down Expand Up @@ -61,4 +61,13 @@ export default defineNuxtConfig({
devtools: {
enabled: true,
},

features: {
// For UnoCSS
inlineStyles: false,
},

eslintConfig: {
setup: false,
},
})
25 changes: 13 additions & 12 deletions package.json
@@ -1,7 +1,7 @@
{
"type": "module",
"private": true,
"packageManager": "pnpm@8.12.0",
"packageManager": "pnpm@8.14.1",
"scripts": {
"build": "nuxi build",
"dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev",
Expand All @@ -14,22 +14,23 @@
"typecheck": "vue-tsc --noEmit"
},
"devDependencies": {
"@antfu/eslint-config": "^2.4.4",
"@iconify-json/carbon": "^1.1.25",
"@iconify-json/twemoji": "^1.1.14",
"@antfu/eslint-config": "^2.6.3",
"@iconify-json/carbon": "^1.1.27",
"@iconify-json/twemoji": "^1.1.15",
"@nuxtjs/color-mode": "^3.3.2",
"@pinia/nuxt": "^0.5.1",
"@unocss/eslint-config": "^0.58.0",
"@unocss/nuxt": "^0.58.0",
"@vite-pwa/nuxt": "^0.3.5",
"@vueuse/nuxt": "^10.7.0",
"@unocss/eslint-config": "^0.58.3",
"@unocss/nuxt": "^0.58.3",
"@vite-pwa/nuxt": "^0.4.0",
"@vueuse/nuxt": "^10.7.2",
"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-ts-patch": "^8.55.0-1",
"nuxt": "^3.8.2",
"eslint-ts-patch": "^8.56.0-0",
"nuxt": "^3.9.3",
"nuxt-module-eslint-config": "^0.0.2",
"pinia": "^2.1.7",
"typescript": "^5.3.3",
"vue-tsc": "^1.8.25"
"vue-tsc": "^1.8.27"
}
}

0 comments on commit d295672

Please sign in to comment.