'no-new': 0,
'array-callback-return': 'error',
'no-undef': 0,
"no-undef": 'off',
'no-undef': 1,
'no-undef': 2,
'no-undef-init': 2,
'no-undefined': 2,
'camelcase': [0, {
'properties': 'always'
}],
'camelcase': 2,
'comma-dangle': [2, 'only-multiline'],
'comma-spacing': [2, {
'before': false,
'after': true
}],
'comma-style': [2, 'last'],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'no-extra-semi': 2,
'indent': [2, 2, {
'SwitchCase': 1
}],
'key-spacing': [2, {
'beforeColon': false,
'afterColon': true
}],
'keyword-spacing': [2, {
'before': true,
'after': true
}],
'lines-around-comment': ['error'],
'new-cap': [2, {
'newIsCap': true,
'capIsNew': false
}],
'no-empty-function': 0,
'no-extra-bind': 2,
'no-floating-decimal': 2,
'no-multi-spaces': 2,
'no-multiple-empty-lines': [2, {
'max': 1
}],
'no-self-compare': 2,
'no-callback-literal': 0,
'no-useless-concat': 'error',
'no-whitespace-before-property': 2,
'quote-props': ['error', 'consistent'],
'jsx-quotes': [2, 'prefer-single'],
'quotes': [2, 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true
}],
'quotes': [2, 'single'],
'no-useless-escape': 0,
'semi-spacing': 'error',
'semi-spacing': [2, {
before: false,
after: true
}],
'semi': [2, "always"],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, 'never'],
'space-infix-ops': 2,
'spaced-comment': [2, 'always', {
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
}],
'dot-notation': ['warn'],
'no-eval': 1,
'no-implied-eval': 2,
'prefer-const': 0,
'generator-star-spacing': [2, {
'before': true,
'after': true
}],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2020,
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true,
},
extends: ['plugin:vue/recommended', 'eslint:recommended', 'plugin:vue/essential', 'standard'],
plugins: ['vue'],
}