Skip to content

Commit 1d3e998

Browse files
fix: eslint and lint fixed
1 parent 3911422 commit 1d3e998

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5906
-3865
lines changed

.eslintignore

-12
This file was deleted.

.eslintrc.cjs

-57
This file was deleted.

eslint.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu(
4+
{
5+
ignores: ['**/node_modules', '**/public', '**/dist', '**/package.json', '**/*.yaml', '**/.gitignore', '**/.env*', '**/tsconfig*']
6+
},
7+
{
8+
rules: {
9+
"no-console": [1],
10+
},
11+
},
12+
)

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"test": "vitest",
1212
"test:ui": "vitest --ui",
1313
"preview": "vite preview",
14-
"lint": "eslint ./src --ext .vue,.js,.ts,.jsx,.tsx --fix"
14+
"lint": "eslint ./src",
15+
"lint:fix": "eslint ./src --fix"
1516
},
1617
"dependencies": {
1718
"@tweenjs/tween.js": "^23.1.2",
@@ -38,6 +39,9 @@
3839
"zod": "^3.23.8"
3940
},
4041
"devDependencies": {
42+
"@antfu/eslint-config": "^3.9.2",
43+
"@eslint/eslintrc": "^3.2.0",
44+
"@eslint/js": "^9.15.0",
4145
"@iconify-json/ep": "^1.1.15",
4246
"@iconify-json/fluent": "^1.1.58",
4347
"@tailwindcss/typography": "^0.5.13",
@@ -55,6 +59,7 @@
5559
"daisyui": "^4.12.10",
5660
"eslint": "^9.6.0",
5761
"eslint-plugin-vue": "^9.26.0",
62+
"globals": "^15.12.0",
5863
"happy-dom": "^14.12.3",
5964
"husky": "^9.0.11",
6065
"jsdom": "^24.1.0",

0 commit comments

Comments
 (0)