Skip to content

Commit

Permalink
chore: eslint upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Nov 28, 2023
1 parent 9036b1f commit 71cb73a
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 133 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

20 changes: 0 additions & 20 deletions components/content/ArticleHeader.vue

This file was deleted.

71 changes: 0 additions & 71 deletions components/content/ArticleToc.vue

This file was deleted.

12 changes: 0 additions & 12 deletions components/content/ProseH2.vue

This file was deleted.

13 changes: 0 additions & 13 deletions components/content/ProseH3.vue

This file was deleted.

29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{},
{
ignores: [
'dist',
'node_modules',
'.output',
'.nuxt',
'content/posts',
'data',
],
},
{
rules: {
"n/prefer-global/process": "off"

Check failure on line 17 in eslint.config.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 17 in eslint.config.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 17 in eslint.config.js

View workflow job for this annotation

GitHub Actions / lint

Missing trailing comma
},
},
{
files: [
'*.d.ts',
],
rules: {
'unused-imports/no-unused-vars': 'off',
'eslint-comments/no-unlimited-disable': 'off',
},
},
)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "chris.me",
"type": "module",
"private": true,
"description": "Chris' blog build with Nuxt3.",
"author": "Chris <https://github.com/zyyv>",
Expand All @@ -23,7 +24,7 @@
"build": "nuxt build",
"preview": "nuxt preview",
"lint": "eslint .",
"postinstall": "nuxt prepare && esno scripts/posts-route.ts"
"postinstall": "nuxt prepare"
},
"dependencies": {
"blurhash": "^2.0.5",
Expand All @@ -38,7 +39,6 @@
"@iconify-json/logos": "^1.1.39",
"@iconify-json/ri": "^1.1.13",
"@iconify/utils": "^2.1.12",
"@nuxt/devtools": "^1.0.4",
"@types/fs-extra": "^11.0.4",
"@unocss/nuxt": "^0.57.7",
"@vueuse/nuxt": "^10.6.1",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}

0 comments on commit 71cb73a

Please sign in to comment.