Skip to content

Commit

Permalink
chore: unocss样式修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ZvonimirSun committed Mar 5, 2024
1 parent e77708a commit 9f87581
Show file tree
Hide file tree
Showing 26 changed files with 291 additions and 146 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# ISZY-TOOLS [![Deploy](https://github.com/ZvonimirSun/iszy-tools/actions/workflows/deploy.yml/badge.svg)](https://github.com/ZvonimirSun/iszy-tools/actions/workflows/deploy.yml) [![Vue 3.x](https://img.shields.io/badge/vue-3.x-brightgreen)](https://v3.cn.vuejs.org/) [![Vite 5.x](https://img.shields.io/badge/Vite-5.x-blue)](https://cn.vitejs.dev/)
# ISZY-TOOLS

ISZY 工具集合,基于 Vue 3 开发,使用 vite 4 进行构建。
[![Deploy](https://github.com/ZvonimirSun/iszy-tools/actions/workflows/deploy.yml/badge.svg)](https://github.com/ZvonimirSun/iszy-tools/actions/workflows/deploy.yml)

[![Vue 3.x](https://img.shields.io/badge/Vue-3.x-brightgreen)](https://v3.cn.vuejs.org/) [![Vite 5.x](https://img.shields.io/badge/Vite-5.x-blue)](https://cn.vitejs.dev/) [![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)

ISZY 工具集合,基于 Vue 3 开发,使用 Vite 5 进行构建。

- JavaScript 框架: [Vue 3](https://v3.cn.vuejs.org/)
- 开发与构建工具: [Vite 5](https://cn.vitejs.dev/)
Expand Down
30 changes: 20 additions & 10 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
// eslint.config.js
import antfu from '@antfu/eslint-config'
import autoImport from './.eslintrc-auto-import.json' assert {type: 'json'}

export default antfu({}, {
rules: {
'no-console': 'off',
'curly': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'no-restricted-globals': 'off',
'ts/no-this-alias': 'off',
export default antfu(
{
unocss: true,
ignores: ['src/assets/**/*', 'src/utils/**/*.js'],
},
}, {
ignores: ['src/utils/**/*'],
})
{
languageOptions: {
globals: autoImport.globals,
},
},
{
rules: {
'no-console': 'off',
'curly': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'no-restricted-globals': 'off',
'ts/no-this-alias': 'off',
},
},
)
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@unocss/eslint-plugin": "^0.58.5",
"@vite-pwa/assets-generator": "^0.2.4",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0",
Expand All @@ -108,8 +109,10 @@
"eslint": "^8.57.0",
"jsdom": "^24.0.0",
"less": "^4.2.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.35",
"sass": "^1.71.1",
"simple-git-hooks": "^2.10.0",
"sitemap": "^7.1.1",
"taze": "^0.13.3",
"typescript": "^5.3.3",
Expand All @@ -125,6 +128,12 @@
"workbox-build": "^7.0.0",
"workbox-window": "^7.0.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
},
"babel": {
"presets": [
"@babel/preset-env"
Expand Down
Loading

0 comments on commit 9f87581

Please sign in to comment.