You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-admin/admin/.eslintrc.js

35 lines
755 B

module.exports = {
root: true,
env: {
es6: true,
node: true,
browser: true,
},
extends: ['eslint:recommended'],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
impliedStrict: true,
},
},
rules: {
'no-undef': 'error',
'no-alert': 'warn',
'no-debugger': 'warn',
'no-else-return': 'error',
indent: [0, 4],
eqeqeq: [2, 'always'],
semi: [2, 'always'],
quotes: [2, 'single'],
},
globals: {
arguments: true,
defineProps: true,
defineEmits: true,
defineExpose: true,
},
};