| 1234567891011121314151617181920212223242526272829303132 |
- // @ts-check
- const { defineConfig } = require('eslint-define-config')
- // 个人开发用,保持宽松,只做基础检查
- module.exports = defineConfig({
- root: true,
- env: {
- browser: true,
- node: true,
- es6: true
- },
- parser: 'vue-eslint-parser',
- parserOptions: {
- parser: '@typescript-eslint/parser',
- ecmaVersion: 2020,
- sourceType: 'module',
- ecmaFeatures: { jsx: true }
- },
- extends: [
- 'plugin:vue/vue3-essential',
- 'plugin:@typescript-eslint/recommended',
- 'prettier'
- ],
- rules: {
- '@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-unused-vars': 'off',
- '@typescript-eslint/ban-ts-comment': 'off',
- '@typescript-eslint/no-empty-function': 'off',
- '@typescript-eslint/explicit-module-boundary-types': 'off',
- 'vue/multi-word-component-names': 'off',
- 'no-console': 'off'
- }
- })
|