Skip to content

Commit

Permalink
feat: update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
VicSolWang committed Dec 6, 2023
1 parent 68503a7 commit 1c96a75
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 0 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export default [
{
rules: {
'import/extensions': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@eslint/eslintrc": "^2.1.4",
"eslint": "^8.55.0",
"eslint-config-wzx": "^0.9.10",
"eslint-config-wzx": "^0.10.0",
"eslint-plugin-vue": "^9.19.2"
},
"peerDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,20 @@ const config = [
{
rules: {
...wzxCustomRules,
'import/extensions': [
'error',
{
ignorePackages: true,
pattern: {
js: 'never',
ts: 'never',
tsx: 'never',
mts: 'never',
cts: 'never',
vue: 'never',
},
},
],
'vue/multi-word-component-names': 'off',
'vue/no-multiple-template-root': vueConfig.includes('vue3')
? 'off'
Expand Down

0 comments on commit 1c96a75

Please sign in to comment.