Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to eslint v9 #133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({
features: {
tooling: true,
stylistic: true,
},
dirs: {
src: [
'./playground',
],
},
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"lint": "eslint --ext .js,.ts,.vue",
"lint": "eslint",
"prepack": "pnpm build",
"release": "pnpm test && pnpm prepack && pnpm changelogen --release --push && pnpm publish",
"test": "pnpm lint && vitest run --coverage"
Expand All @@ -40,15 +40,15 @@
"devDependencies": {
"@nuxt/module-builder": "latest",
"@nuxt/test-utils": "latest",
"@nuxtjs/eslint-config-typescript": "latest",
"@vitest/coverage-v8": "latest",
"changelogen": "latest",
"eslint": "latest",
"eslint": "9.1.1",
"nuxt": "latest",
"postcss-html": "latest",
"stylelint": "latest",
"stylelint-config-recommended-vue": "latest",
"vitest": "latest"
"vitest": "latest",
"@nuxt/eslint-config": "0.3.9"
},
"peerDependencies": {
"stylelint": ">=13"
Expand All @@ -57,4 +57,4 @@
"access": "public"
},
"packageManager": "[email protected]"
}
}
4 changes: 2 additions & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineNuxtConfig({
modules: [
'../src/module'
]
'../src/module',
],
})
Loading
Loading