123456789101112131415161718192021222324252627282930313233 |
- module.exports = {
- root: true,
- env: {
- node: true,
- },
- extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/typescript/recommended', '@vue/prettier', '@vue/prettier/@typescript-eslint'],
- parserOptions: {
- ecmaVersion: 2020,
- },
- rules: {
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- '@typescript-eslint/no-explicit-any': ['off'],
- 'max-len': [
- 'warn',
- {
- code: 10000,
- },
- ],
- 'no-unused-vars': 'off',
- 'no-console': 'off',
- 'prettier/prettier': [
- 'warn',
- {
- singleQuote: true,
- trailingComma: 'es5',
- bracketSpacing: true,
- jsxBracketSameLine: true,
- printWidth: 160,
- },
- ],
- },
- };
|