diff --git a/packages/nutui-eslint-config/index.js b/packages/nutui-eslint-config/index.js
index a89ee5b1e2..c8b22d4858 100644
--- a/packages/nutui-eslint-config/index.js
+++ b/packages/nutui-eslint-config/index.js
@@ -22,22 +22,20 @@ module.exports = {
TaroGeneral: true
},
rules: {
+ // @typescript-eslint
'@typescript-eslint/no-explicit-any': 'off',
- // '@typescript-eslint/no-unused-vars': 'error',
- // enable type: Function Object
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
+ 'no-unused-vars': 'off',
+ '@typescript-eslint/no-unused-vars': 'error',
+ // eslint-plugin-vue
'vue/no-v-html': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-text-v-html-on-component': 'off',
- // will be fixed
+ // will be removed someday
'vue/attributes-order': 'off',
'vue/attribute-hyphenation': 'off',
- 'vue/v-on-event-hyphenation': 'off',
- 'vue/v-slot-style': 'off',
- 'no-unused-vars': 'off',
- 'vue/valid-v-for': 'off',
- 'no-empty': 'off'
+ 'vue/v-on-event-hyphenation': 'off'
}
};
diff --git a/packages/nutui-eslint-config/package.json b/packages/nutui-eslint-config/package.json
index 0fed9d0f43..24d62dee05 100644
--- a/packages/nutui-eslint-config/package.json
+++ b/packages/nutui-eslint-config/package.json
@@ -26,6 +26,7 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
+ "vue-eslint-parser": "^9.3.1",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-vue": "^9.15.1"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b08e5adde2..7bfe92493e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -132,6 +132,9 @@ importers:
eslint-plugin-vue:
specifier: ^9.15.1
version: 9.15.1(eslint@8.44.0)
+ vue-eslint-parser:
+ specifier: ^9.3.1
+ version: 9.3.1(eslint@8.44.0)
devDependencies:
eslint:
specifier: ^8.44.0
diff --git a/src/packages/__VUE/address/demo.vue b/src/packages/__VUE/address/demo.vue
index 2e33f4ef7f..47ac522bac 100644
--- a/src/packages/__VUE/address/demo.vue
+++ b/src/packages/__VUE/address/demo.vue
@@ -309,7 +309,7 @@ export default defineComponent({
text.two = val.data.addressStr;
}
};
- const selected = (prevExistAdd: AddressList, nowExistAdd: RegionData, arr: AddressList[]) => {
+ const selected = (prevExistAdd: AddressList, nowExistAdd: RegionData) => {
console.log(prevExistAdd);
console.log(nowExistAdd);
};
diff --git a/src/packages/__VUE/audio/index.vue b/src/packages/__VUE/audio/index.vue
index cdeaaf81c5..4c64b14cbc 100644
--- a/src/packages/__VUE/audio/index.vue
+++ b/src/packages/__VUE/audio/index.vue
@@ -14,7 +14,7 @@
inactive-color="#cccccc"
active-color="#fa2c19"
>
-
+
@@ -64,7 +64,7 @@ import { toRefs, ref, onMounted, reactive, watch, provide, Component } from 'vue
import { createComponent } from '@/packages/utils/create';
import { Service } from '@nutui/icons-vue';
import Range from '../range/index.vue';
-const { componentName, create } = createComponent('audio');
+const { create } = createComponent('audio');
export default create({
props: {
diff --git a/src/packages/__VUE/audiooperate/index.vue b/src/packages/__VUE/audiooperate/index.vue
index d2059ab862..5f0bd521d3 100644
--- a/src/packages/__VUE/audiooperate/index.vue
+++ b/src/packages/__VUE/audiooperate/index.vue
@@ -23,10 +23,10 @@