123456789101112131415161718192021222324252627282930313233 |
- // https://eslint.org/docs/user-guide/configuring
- module.exports = {
- root: true,
- env: {
- node: true,
- },
- extends: ['eslint:recommended', 'plugin:vue/essential', '@vue/prettier'],
- plugins: ['vue'],
- rules: {
- 'max-len': [
- 'warn',
- {
- code: 250,
- },
- ],
- 'no-unused-vars': 'off',
- 'no-console': 'off',
- 'prettier/prettier': [
- 'warn',
- {
- singleQuote: true,
- trailingComma: 'es5',
- bracketSpacing: true,
- jsxBracketSameLine: true,
- printWidth: 160,
- },
- ],
- },
- parserOptions: {
- parser: 'babel-eslint',
- },
- };
|