Skip to content

Commit

Permalink
chore: lint and style the project
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakiRain committed Jan 18, 2023
1 parent b153565 commit 591adcd
Show file tree
Hide file tree
Showing 30 changed files with 4,330 additions and 2,136 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:@typescript-eslint/recommended"
],
"overrides": [],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"parser": "@typescript-eslint/parser"
},
"plugins": ["vue", "@typescript-eslint"],
"rules": {
"vue/multi-word-component-names": "off"
}
}

3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"endOfLine": "crlf"
}
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"fix": "prettier --write src/**/*.{ts,js,vue,css,less} && eslint --fix src/**/*.{ts,js,vue}"
},
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
Expand All @@ -21,9 +22,14 @@
"devDependencies": {
"@types/node": "^18.11.18",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@vitejs/plugin-vue": "^4.0.0",
"@vueuse/core": "^9.10.0",
"cross-env": "^7.0.3",
"eslint": "^8.32.0",
"eslint-plugin-vue": "^9.9.0",
"prettier": "^2.8.3",
"typescript": "^4.9.3",
"vite": "^4.0.0",
"vue-tsc": "^1.0.11"
Expand Down
Loading

0 comments on commit 591adcd

Please sign in to comment.