|
1 | | -module.exports = { |
2 | | - root: true, |
3 | | - |
4 | | - parserOptions: { |
5 | | - parser: 'babel-eslint', |
6 | | - sourceType: 'module' |
7 | | - }, |
8 | | - |
9 | | - env: { |
10 | | - browser: true |
11 | | - }, |
12 | | - |
13 | | - extends: [ |
14 | | - // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention |
15 | | - // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. |
16 | | - 'plugin:vue/essential', |
17 | | - '@vue/standard' |
18 | | - ], |
19 | | - |
20 | | - // required to lint *.vue files |
21 | | - plugins: [ |
22 | | - 'vue' |
23 | | - ], |
24 | | - |
25 | | - globals: { |
26 | | - 'ga': true, // Google Analytics |
27 | | - 'cordova': true, |
28 | | - '__statics': true, |
29 | | - 'process': true |
30 | | - }, |
31 | | - |
32 | | - // add your custom rules here |
33 | | - rules: { |
34 | | - // allow async-await |
35 | | - 'generator-star-spacing': 'off', |
36 | | - // allow paren-less arrow functions |
37 | | - 'arrow-parens': 'off', |
38 | | - 'one-var': 'off', |
39 | | - |
40 | | - 'import/first': 'off', |
41 | | - 'import/named': 'error', |
42 | | - 'import/namespace': 'error', |
43 | | - 'import/default': 'error', |
44 | | - 'import/export': 'error', |
45 | | - 'import/extensions': 'off', |
46 | | - 'import/no-unresolved': 'off', |
47 | | - 'import/no-extraneous-dependencies': 'off', |
48 | | - 'prefer-promise-reject-errors': 'off', |
49 | | - |
50 | | - // allow console.log during development only |
51 | | - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
52 | | - // allow debugger during development only |
53 | | - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' |
54 | | - } |
55 | | -} |
| 1 | +/* eslint-disable max-len */ |
| 2 | +module.exports = { |
| 3 | + root: true, |
| 4 | + |
| 5 | + parserOptions: { |
| 6 | + parser: 'babel-eslint', |
| 7 | + sourceType: 'module' |
| 8 | + }, |
| 9 | + |
| 10 | + env: { |
| 11 | + browser: true |
| 12 | + }, |
| 13 | + |
| 14 | + extends: [ |
| 15 | + // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention |
| 16 | + // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. |
| 17 | + 'plugin:vue/essential', |
| 18 | + '@vue/standard' |
| 19 | + ], |
| 20 | + |
| 21 | + // required to lint *.vue files |
| 22 | + plugins: ['vue'], |
| 23 | + |
| 24 | + globals: { |
| 25 | + ga: true, // Google Analytics |
| 26 | + cordova: true, |
| 27 | + __statics: true, |
| 28 | + process: true |
| 29 | + }, |
| 30 | + |
| 31 | + // add your custom rules here |
| 32 | + rules: { |
| 33 | + // allow async-await |
| 34 | + 'generator-star-spacing': 'off', |
| 35 | + // allow paren-less arrow functions |
| 36 | + 'arrow-parens': 'off', |
| 37 | + 'one-var': 'off', |
| 38 | + 'semi': 'off', |
| 39 | + 'quotes': 'off', |
| 40 | + 'space-before-function-paren': 'off', |
| 41 | + 'import/first': 'off', |
| 42 | + 'import/named': 'error', |
| 43 | + 'import/namespace': 'error', |
| 44 | + 'import/default': 'error', |
| 45 | + 'import/export': 'error', |
| 46 | + 'import/extensions': 'off', |
| 47 | + 'import/no-unresolved': 'off', |
| 48 | + 'import/no-extraneous-dependencies': 'off', |
| 49 | + 'prefer-promise-reject-errors': 'off', |
| 50 | + // allow console.log during development only |
| 51 | + 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
| 52 | + // allow debugger during development only |
| 53 | + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' |
| 54 | + } |
| 55 | +} |
0 commit comments