Skip to content

Commit a34ffe7

Browse files
authored
chore(eslint-config): remove eslint-plugin-import (#12053)
1 parent 47a3aea commit a34ffe7

File tree

4 files changed

+3
-206
lines changed

4 files changed

+3
-206
lines changed

packages/vant-eslint-config/index.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
extends: [
3+
'eslint:recommended',
34
'plugin:vue/vue3-recommended',
4-
'airbnb-base',
55
'plugin:@typescript-eslint/recommended',
66
'prettier',
77
],
@@ -23,28 +23,7 @@ module.exports = {
2323
},
2424

2525
rules: {
26-
'no-new': 'off',
27-
'no-shadow': 'off',
28-
'no-bitwise': 'off',
29-
'func-names': 'off',
30-
'no-console': 'off',
31-
'no-plusplus': 'off',
32-
'default-case': 'off',
33-
'prefer-template': 'off',
34-
'consistent-return': 'off',
35-
'no-param-reassign': 'off',
36-
'no-nested-ternary': 'off',
37-
'no-underscore-dangle': 'off',
38-
'no-unused-expressions': 'off',
39-
'no-restricted-globals': 'off',
40-
'class-methods-use-this': 'off',
4126
'prefer-destructuring': ['error', { object: true, array: false }],
42-
// eslint-plugin-import
43-
'import/order': 'off',
44-
'import/extensions': 'off',
45-
'import/no-unresolved': 'off',
46-
'import/prefer-default-export': 'off',
47-
'import/no-extraneous-dependencies': 'off',
4827
// eslint-plugin-vue
4928
'vue/no-v-html': 'off',
5029
'vue/attributes-order': 'off',

packages/vant-eslint-config/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
"dependencies": {
2323
"@typescript-eslint/eslint-plugin": "^5.48.0",
2424
"@typescript-eslint/parser": "^5.48.0",
25-
"eslint-config-airbnb-base": "^15.0.0",
2625
"eslint-config-prettier": "^8.6.0",
27-
"eslint-plugin-import": "^2.26.0",
2826
"eslint-plugin-vue": "^9.8.0"
2927
},
3028
"devDependencies": {

packages/vant/src/lazyload/demo/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if (window.app) {
77
</script>
88

99
<script setup lang="ts">
10-
// eslint-disable-next-line import/first
1110
import { cdnURL, useTranslate } from '../../../docs/site';
1211
1312
const t = useTranslate({

pnpm-lock.yaml

Lines changed: 2 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)