1 | module.exports = {
|
2 | root: true,
|
3 | parserOptions: {
|
4 | parser: 'babel-eslint',
|
5 | ecmaVersion: 6,
|
6 | sourceType: 'module',
|
7 | ecmaFeatures: { 'experimentalObjectRestSpread': true, 'modules': true }
|
8 | },
|
9 | env: {
|
10 | browser: true,
|
11 | },
|
12 | globals: {
|
13 | "expect": true,
|
14 | "beforeAll": true,
|
15 | "afterAll": true,
|
16 | "jest": true,
|
17 | },
|
18 | extends: ['plugin:vue/essential','eslint-config-egg'],
|
19 | plugins: [
|
20 | 'vue'
|
21 | ],
|
22 | rules: {
|
23 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
24 | "vue/no-parsing-error": [2, { "x-invalid-end-tag": false }],
|
25 | },
|
26 | };
|