1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- module.exports = {
- parser: 'vue-eslint-parser',
- parserOptions: {
- parser: '@typescript-eslint/parser',
- ecmaVersion: 2021,
- sourceType: 'module',
- ecmaFeatures: {
- jsx: true
- }
- },
- extends: [
- 'plugin:vue/vue3-recommended',
- 'plugin:@typescript-eslint/recommended',
- 'plugin:prettier/recommended',
- 'prettier'
- ],
- rules: {
- '@typescript-eslint/ban-ts-ignore': 'off',
- '@typescript-eslint/explicit-function-return-type': 'off',
- '@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-var-requires': 'off',
- '@typescript-eslint/no-empty-function': 'off',
- '@typescript-eslint/no-empty-interface': 'off',
- 'vue/custom-event-name-casing': 'off',
- 'no-use-before-define': 'off',
- '@typescript-eslint/no-use-before-define': 'off',
- '@typescript-eslint/ban-ts-comment': 'off',
- '@typescript-eslint/ban-types': 'off',
- '@typescript-eslint/no-non-null-assertion': 'off',
- '@typescript-eslint/explicit-module-boundary-types': 'off',
- '@typescript-eslint/no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^(unused|ignored).*$',
- varsIgnorePattern: '^(unused|ignored).*$'
- }
- ],
- 'no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^(unused|ignored).*$',
- varsIgnorePattern: '^(unused|ignored).*$'
- }
- ],
- 'space-before-function-paren': 'off',
- quotes: ['error', 'single'],
- 'comma-dangle': ['error', 'never'],
- 'vue/multi-word-component-names': 'off',
- 'vue/component-definition-name-casing': 'off',
- 'vue/require-valid-default-prop': 'off',
- 'no-console': 'error',
- 'vue/no-setup-props-destructure': 'off'
- }
- }
|