Skip to content

Commit

Permalink
chore(eslint): use @uni-helper/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Nov 3, 2023
1 parent 51e02ef commit 2a086ec
Show file tree
Hide file tree
Showing 3 changed files with 498 additions and 194 deletions.
25 changes: 3 additions & 22 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
const antfu = require('@antfu/eslint-config').default
const uni = require('@uni-helper/eslint-config')
const unocss = require('@unocss/eslint-plugin')

module.exports = antfu(
{
ignores: ['**/manifest.json', '**/pages.json'],
},
{
files: ['**/*.vue'],
rules: {
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
ignores: [
'page-meta',
'navigator',
'web-view',
],
},
],
},
},
module.exports = uni(
{},
unocss.configs.flat,
)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
"vue-i18n": "^9.6.0"
},
"devDependencies": {
"@antfu/eslint-config": "^1.0.0-beta.29",
"@dcloudio/types": "^3.4.1",
"@dcloudio/uni-automator": "3.0.0-alpha-3090420231023001",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-3090420231023001",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-3090420231023001",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-3090420231023001",
"@iconify-json/carbon": "^1.1.21",
"@types/node": "^20.8.9",
"@uni-helper/eslint-config": "^0.0.1",
"@uni-helper/uni-app-types": "^0.5.12",
"@uni-helper/uni-env": "^0.1.1",
"@uni-helper/unocss-preset-uni": "^0.2.3",
Expand All @@ -89,7 +89,7 @@
"typescript": "^5.2.2",
"unocss": "^0.57.1",
"unplugin-auto-import": "^0.16.7",
"vite": "4.0.3",
"vite": "^4.5.0",
"vue-tsc": "^1.8.22"
},
"simple-git-hooks": {
Expand Down
Loading

0 comments on commit 2a086ec

Please sign in to comment.