1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
| module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/recommended', 'eslint:recommended' ], rules: { 'quotes': [0, 'single'], 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'prefer-promise-reject-errors': 0, 'space-unary-ops': 0, 'no-unused-expressions': 0, 'no-useless-return': 0, 'standard/no-callback-literal': 0, 'import/first': 0, 'import/export': 0, 'no-mixed-operators': 0, 'no-use-before-define': 0,
'semi': [2, 'never'],
'eqeqeq': 0,
'indent': 2,
'no-tabs': 0,
'space-before-function-paren': [2, 'never'],
'padded-blocks': 0,
'one-var': 0,
'no-cond-assign': [2, 'except-parens'],
'no-constant-condition': 2,
'curly': [2, 'multi-line'],
'no-var': 2,
'no-unused-vars':0,
'no-multi-spaces': ['error', { ignoreEOLComments: true }], 'camelcase': 0,
'key-spacing': 2,
'no-else-return': 2,
'no-magic-numbers': [0, { ignoreArrayIndexes: true }],
'no-redeclare': [2, { builtinGlobals: true }],
'wrap-iife': [2, 'inside'],
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
'dot-location': [2, 'property'],
'block-spacing': [2, 'always'],
'guard-for-in': 0,
'brace-style': [2, '1tbs', { 'allowSingleLine': true }],
'comma-spacing': [2, { 'before': false, 'after': true }],
'no-multiple-empty-lines': [2, { 'max': 1, 'maxEOF': 2 }],
'arrow-parens': 0,
'generator-star-spacing': [2, { 'before': false, 'after': true }],
'lines-around-comment': [2, { 'beforeBlockComment': true, 'afterBlockComment': false, 'beforeLineComment': true, 'afterLineComment': false }] }, parserOptions: { parser: 'babel-eslint' } }
|