Skip to content

Commit

Permalink
chore: migrate to eslint v9 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored May 8, 2024
1 parent 2f7996e commit 0620829
Show file tree
Hide file tree
Showing 15 changed files with 696 additions and 1,044 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true
}
4 changes: 2 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
externals: [
'vite',
'@vue/server-renderer'
]
'@vue/server-renderer',
],
})
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({
features: {
tooling: true,
stylistic: true,
},
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext .ts src",
"lint": "eslint src",
"release": "pnpm test && pnpm build && changelogen --release --push && pnpm publish",
"test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit"
},
"dependencies": {
"ufo": "^1.3.2"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@types/node": "^20.10.6",
"@vitest/coverage-v8": "^1.1.1",
"changelogen": "^0.5.5",
"eslint": "^8.56.0",
"eslint": "^9.2.0",
"expect-type": "^0.17.3",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vite": "^5.0.10",
"vitest": "1.1.1",
"vue": "3.4.3"
"vue": "3.4.3",
"@nuxt/eslint-config": "^0.3.10"
},
"packageManager": "pnpm@8.13.1"
}
Loading

0 comments on commit 0620829

Please sign in to comment.