Skip to content

Commit

Permalink
chore: 更换为antfu/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Mar 5, 2024
1 parent 0690361 commit e77708a
Show file tree
Hide file tree
Showing 159 changed files with 6,817 additions and 5,720 deletions.
47 changes: 0 additions & 47 deletions .eslintrc

This file was deleted.

12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "monthly"
interval: monthly

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: npm
directory: /
schedule:
interval: "monthly"
interval: monthly
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ name: Auto Deploy
on:
push:
branches:
- 'main'
- 'dev'
- main
- dev
paths-ignore:
- '.github/**'
- '**/*.test.js'
- '**/*.test.ts'
pull_request:
branches-ignore:
- 'deploy'
- 'deploy-beta'
- deploy
- deploy-beta
paths-ignore:
- '.github/**'
- '**/*.test.js'
- '**/*.test.ts'
workflow_dispatch:
branches-ignore:
- 'deploy'
- 'deploy-beta'
- deploy
- deploy-beta

jobs:
build:
Expand All @@ -36,7 +36,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache: pnpm

- name: Install dependencies
run: pnpm install
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// eslint.config.js
import antfu from '@antfu/eslint-config'

export default antfu({}, {
rules: {
'no-console': 'off',
'curly': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'no-restricted-globals': 'off',
'ts/no-this-alias': 'off',
},
}, {
ignores: ['src/utils/**/*'],
})
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"name": "iszy_tools",
"type": "module",
"version": "2.0.2",
"private": true,
"license": "GPL-3.0",
"scripts": {
"build": "vue-tsc --noEmit && vite build",
"dev": "vite",
"dev:api": "vite --mode test",
"lint": "eslint --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"preview": "vite preview",
"test": "vitest",
"coverage": "vitest run --coverage",
"typecheck": "vue-tsc --noEmit",
"up": "taze minor -I",
"sizecheck": "npx vite-bundle-visualizer"
},
"type": "module",
"dependencies": {
"@ckpack/vue-color": "^1.5.0",
"@codemirror/commands": "^6.3.3",
Expand Down Expand Up @@ -73,6 +75,7 @@
},
"devDependencies": {
"@algolia/client-search": "^4.22.1",
"@antfu/eslint-config": "^2.6.4",
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.23.10",
"@babel/preset-env": "^7.24.0",
Expand Down Expand Up @@ -103,12 +106,6 @@
"@vue/test-utils": "^2.4.4",
"co": "^4.6.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.22.0",
"jsdom": "^24.0.0",
"less": "^4.2.0",
"postcss": "^8.4.35",
Expand All @@ -132,6 +129,5 @@
"presets": [
"@babel/preset-env"
]
},
"license": "GPL-3.0"
}
}
Loading

0 comments on commit e77708a

Please sign in to comment.