| 123456789101112131415161718192021222324252627282930 |
- module.exports = {
- root: true,
- 'extends': [
- 'plugin:vue/essential',
- '@vue/standard'
- ],
- rules: {
- 'indent': ['off', 4],
- 'generator-star-spacing': 'off',
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
- 'vue/no-parsing-error': [2, {
- 'x-invalid-end-tag': false
- }],
- 'no-undef': 'off',
- 'vue/no-async-in-computed-properties': 'off',
- 'vue/no-parsing-error': [2, { "x-invalid-end-tag": false }],
- 'camelcase': 'off',
- 'no-unused-vars': 'off',
- 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
- // 要求 switch 语句中有 default 分支
- 'default-case': 'error',
- 'comma-dangle': 'off',
- 'no-var': 'error',
- 'spaced-comment': 'off',
- 'space-before-function-paren': 'off'
- },
- parserOptions: {
- parser: 'babel-eslint'
- }
- }
|