Skip to content

Commit 6f165f9

Browse files
committed
pretty再次格式化所有文件
1 parent 474859c commit 6f165f9

File tree

157 files changed

+25156
-29448
lines changed

Some content is hidden

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

157 files changed

+25156
-29448
lines changed

.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-prettier/skip-formatting'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 'latest'
13+
}
14+
}

.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"build": "vite build --mode prod",
77
"build-uni-app": "vite build --mode uni",
88
"report": "vite build",
9-
"preview": "vite preview"
9+
"preview": "vite preview",
10+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
11+
"format": "prettier --write src/"
1012
},
1113
"dependencies": {
1214
"@jambonn/vue-lazyload": "1.0.9",
@@ -27,15 +29,18 @@
2729
"@iconify/vue": "^4.1.1",
2830
"@types/lodash-es": "^4.17.9",
2931
"@vitejs/plugin-vue": "4.0.0",
30-
"@vitejs/plugin-vue-jsx": "3.0.0",
3132
"less": "4.1.3",
32-
"prettier": "3.2.5",
3333
"rollup-plugin-visualizer": "^5.9.2",
3434
"unplugin-vue-define-options": "^1.4.1",
35-
"unplugin-vue-macros": "^2.7.10",
3635
"vite": "4.5.2",
3736
"vite-plugin-cdn-import": "0.3.5",
3837
"vite-plugin-compression": "^0.5.1",
39-
"vite-plugin-imagemin": "^0.6.1"
38+
"vite-plugin-imagemin": "^0.6.1",
39+
"@rushstack/eslint-patch": "^1.3.3",
40+
"@vitejs/plugin-vue-jsx": "^3.1.0",
41+
"@vue/eslint-config-prettier": "^8.0.0",
42+
"eslint": "^8.49.0",
43+
"eslint-plugin-vue": "^9.17.0",
44+
"prettier": "^3.0.3"
4045
}
4146
}

0 commit comments

Comments
 (0)