// https://blog.csdn.net/Sheng_zhenzhen/article/details/108685176 module.exports = { root: true, env: { browser: true, commonjs: true, es6: true, node: true }, globals: { defineEmits: true, document: true, localStorage: true, GLOBAL_VAR: true, window: true, defineProps: true, defineExpose: true, defineOptions: true, $ref: true }, plugins: ['@typescript-eslint', 'prettier', 'import'], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-recommended', 'prettier', './.eslintrc-auto-import.json' // './tests/.eslintrc-unit-test.json' ], parserOptions: { parser: '@typescript-eslint/parser', sourceType: 'module', ecmaFeatures: { jsx: true, tsx: true } }, rules: { //close lf error 'import/no-unresolved': [0], 'vue/multi-word-component-names': 'off', 'vue/no-deprecated-router-link-tag-prop': 'off', 'import/extensions': 'off', 'import/no-absolute-path': 'off', 'no-async-promise-executor': 'off', 'import/no-extraneous-dependencies': 'off', 'vue/no-multiple-template-root': 'off', 'vue/html-self-closing': 'off', 'no-console': 'off', 'no-plusplus': 'off', 'no-useless-escape': 'off', 'no-bitwise': 'off', '@typescript-eslint/no-explicit-any': ['off'], '@typescript-eslint/explicit-module-boundary-types': ['off'], '@typescript-eslint/ban-ts-comment': ['off'], 'vue/no-setup-props-destructure': ['off'], '@typescript-eslint/no-empty-function': ['off'], 'vue/script-setup-uses-vars': ['off'], //can config to 2 if need more then required '@typescript-eslint/no-unused-vars': [0], 'no-param-reassign': ['off'] } }