Skip to content

Commit ee96001

Browse files
committed
build: use eslint helper function
1 parent 2a20845 commit ee96001

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/cute-buttons-dig.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'vite-vue-template-sky': patch
3+
---
4+
5+
build: use eslint helper function

eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { defineConfig } from 'eslint/config'
12
import js from '@eslint/js'
23
import globals from 'globals'
34
import standardConfig from 'eslint-config-standard'
@@ -14,7 +15,7 @@ import playwrightPlugin from 'eslint-plugin-playwright'
1415
// import testingLibraryPlugin from 'eslint-plugin-testing-library'
1516
import typescript from 'typescript-eslint'
1617

17-
export default [
18+
export default defineConfig([
1819
js.configs.recommended,
1920
...typescript.configs.recommended,
2021
...typescript.configs.stylistic,
@@ -104,4 +105,4 @@ export default [
104105
ignores: ['node_modules/**', 'dist/**', '.{idea,fleet,vscode,git}/**', '*.config.*'],
105106
},
106107
prettierConfig,
107-
]
108+
])

0 commit comments

Comments
 (0)