Skip to content

Commit

Permalink
chore: update deps and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Aug 1, 2024
1 parent f6d0548 commit 43a08e3
Show file tree
Hide file tree
Showing 9 changed files with 3,848 additions and 2,295 deletions.
6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
51 changes: 49 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
{
"cSpell.words": [
"nuxt"
"cSpell.words": ["nuxt"],

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

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

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

用 💛 发电

根据[MIT 许可证](./LICENSE)发布
根据 [MIT 许可证](./LICENSE)发布
3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
18 changes: 15 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@ export default defineNuxtConfig({
app: {
pageTransition: { name: 'page', mode: 'out-in' },
},
modules: ['@unocss/nuxt', 'nuxt-simple-sitemap', '@nuxtjs/color-mode', 'nuxt-gtag'],

modules: [
'@unocss/nuxt',
'@nuxtjs/color-mode',
'nuxt-gtag',
'@nuxtjs/sitemap',
],

css: ['@unocss/reset/tailwind.css'],

colorMode: {
classSuffix: '',
storageKey: 'uni-helper-color-mode',
},
sitemap: {
siteUrl: 'https://uni-helper.js.org',

site: {
url: 'https://uni-helper.js.org',
},

gtag: {
id: 'G-249B95M763',
},

compatibilityDate: '2024-08-01',
})
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@iconify-json/carbon": "^1.1.21",
"@iconify-json/mdi": "^1.1.54",
"@iconify-json/ri": "^1.1.12",
"@nuxtjs/color-mode": "^3.3.0",
"@unocss/eslint-config": "^0.56.5",
"@unocss/nuxt": "^0.56.5",
"eslint": "^8.51.0",
"nuxt": "^3.7.4",
"nuxt-gtag": "^1.1.1",
"nuxt-simple-sitemap": "^3.4.0"
"@antfu/eslint-config": "^2.24.1",
"@iconify-json/carbon": "^1.1.36",
"@iconify-json/mdi": "^1.1.67",
"@iconify-json/ri": "^1.1.21",
"@nuxtjs/color-mode": "^3.4.2",
"@nuxtjs/sitemap": "6.0.0-beta.1",
"@unocss/eslint-plugin": "^0.61.9",
"@unocss/nuxt": "^0.61.9",
"eslint": "^9.8.0",
"nuxt": "^3.12.4",
"nuxt-gtag": "^2.1.0"
}
}
Loading

0 comments on commit 43a08e3

Please sign in to comment.