Skip to content

Commit

Permalink
🗂️ feat: eslint order sorted for vue (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz authored May 29, 2024
1 parent bb0f6b3 commit b3a5300
Show file tree
Hide file tree
Showing 33 changed files with 1,660 additions and 1,628 deletions.
9 changes: 5 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// import antfu from '@antfu/eslint-config'
// export default antfu()

import globals from 'globals'
import { defineFlatConfig } from 'eslint-define-config'

Expand Down Expand Up @@ -250,7 +247,7 @@ export default defineFlatConfig([
'no-use-before-define': ['error', {
classes: false,
functions: false,
variables: true
variables: false
}],
'no-useless-backreference': 'error',
'no-useless-call': 'error',
Expand Down Expand Up @@ -428,6 +425,10 @@ export default defineFlatConfig([
'vue/v-on-event-hyphenation': ['warn', 'always', {
autofix: true
}],
'vue/block-order': ['error', {
'order': ['script', 'template', 'style']
}],
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/script-setup-uses-vars': 'error',
'vue/html-self-closing': ['error', {
html: {
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"axios": "1.7.1",
"axios": "1.7.2",
"echarts": "^5.5.0",
"element-plus": "2.7.3",
"js-cookie": "^3.0.5",
Expand All @@ -60,19 +60,19 @@
"vuex": "^4.1.0"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@eslint/js": "^9.3.0",
"@iconify/json": "^2.2.212",
"@iconify/json": "^2.2.214",
"@iconify/vue": "^4.1.2",
"@stylistic/eslint-plugin": "^2.1.0",
"@stylistic/stylelint-plugin": "^2.1.2",
"@types/js-cookie": "^3.0.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.12",
"@types/nprogress": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-v8": "^1.6.0",
"@vue/compiler-sfc": "^3.4.27",
Expand All @@ -86,14 +86,14 @@
"eslint-plugin-vue": "9.26.0",
"globals": "^15.3.0",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.5",
"postcss": "^8.4.38",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"rollup": "4.17.2",
"rollup": "4.18.0",
"sass": "^1.77.2",
"stylelint": "^16.5.0",
"stylelint": "^16.6.1",
"stylelint-config-recommended-scss": "^14.0.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0",
Expand All @@ -103,7 +103,7 @@
"unplugin-auto-import": "^0.17.6",
"unplugin-icons": "^0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vitest": "^1.6.0",
"vue-eslint-parser": "^9.4.2"
}
Expand Down
Loading

0 comments on commit b3a5300

Please sign in to comment.