Skip to content

Commit

Permalink
chore(eslint-config): remove eslint-plugin-import (#12053)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jul 2, 2023
1 parent 47a3aea commit a34ffe7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 206 deletions.
23 changes: 1 addition & 22 deletions packages/vant-eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'prettier',
],
Expand All @@ -23,28 +23,7 @@ module.exports = {
},

rules: {
'no-new': 'off',
'no-shadow': 'off',
'no-bitwise': 'off',
'func-names': 'off',
'no-console': 'off',
'no-plusplus': 'off',
'default-case': 'off',
'prefer-template': 'off',
'consistent-return': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'off',
'no-underscore-dangle': 'off',
'no-unused-expressions': 'off',
'no-restricted-globals': 'off',
'class-methods-use-this': 'off',
'prefer-destructuring': ['error', { object: true, array: false }],
// eslint-plugin-import
'import/order': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
// eslint-plugin-vue
'vue/no-v-html': 'off',
'vue/attributes-order': 'off',
Expand Down
2 changes: 0 additions & 2 deletions packages/vant-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-vue": "^9.8.0"
},
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/vant/src/lazyload/demo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ if (window.app) {
</script>

<script setup lang="ts">
// eslint-disable-next-line import/first
import { cdnURL, useTranslate } from '../../../docs/site';
const t = useTranslate({
Expand Down
183 changes: 2 additions & 181 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a34ffe7

Please sign in to comment.