reset base config

This commit is contained in:
axolotle
2021-02-23 12:45:57 +01:00
parent 0da09e13d8
commit c0fd76d93a
12 changed files with 123 additions and 148 deletions
+26 -25
View File
@@ -1,33 +1,34 @@
const prod = process.env.NODE_ENV === 'production'
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/strongly-recommended',
'plugin:vue-a11y/base',
'eslint:recommended',
'@vue/standard'
],
plugins: [
'vue-a11y'
],
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
node: true,
mocha: true
},
"globals": {
"expect": true
},
extends: [
'plugin:vue/recommended',
'plugin:vue-a11y/base',
'standard'
],
plugins: [
'vue',
'vue-a11y'
],
rules: {
'generator-star-spacing': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/no-v-html': 'off',
'vue/require-default-prop': 'off',
'vue-a11y/label-has-for': 'off'
'no-console': prod ? 'warn' : 'off',
'no-debugger': prod ? 'warn' : 'off',
'vue/max-attributes-per-line': [
'error',
{
singleline: 3,
multiline: { max: 3, allowFirstLine: true }
}
],
'no-irregular-whitespace': 'off',
'no-unused-vars': 'warn',
'no-multiple-empty-lines': ['error', { max: 2 }]
}
}