2020-02-16 19:30:00 +01:00
|
|
|
module.exports = {
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#using-configuration-files-1
|
|
|
|
root: true,
|
|
|
|
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#specifying-environments
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2020-08-05 04:18:39 +02:00
|
|
|
node: true
|
2020-02-16 19:30:00 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#specifying-parser
|
|
|
|
parser: 'vue-eslint-parser',
|
|
|
|
|
|
|
|
// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
|
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint',
|
|
|
|
ecmaVersion: 2018,
|
2020-08-05 04:18:39 +02:00
|
|
|
sourceType: 'module'
|
2020-02-16 19:30:00 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
|
|
|
|
// order matters: from least important to most important in terms of overriding
|
|
|
|
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c
|
|
|
|
extends: [
|
|
|
|
'prettier',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:vue/recommended',
|
2020-08-05 04:18:39 +02:00
|
|
|
'standard'
|
2020-02-16 19:30:00 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
|
|
|
|
plugins: ['vue'],
|
|
|
|
|
|
|
|
rules: {
|
2020-02-28 04:29:30 +01:00
|
|
|
'space-before-function-paren': 0,
|
2020-08-05 04:18:39 +02:00
|
|
|
'comma-dangle': ['error', 'never'],
|
2020-02-28 04:29:30 +01:00
|
|
|
'vue/no-v-html': 'off',
|
2020-02-16 19:30:00 +01:00
|
|
|
'no-console': 0,
|
|
|
|
'no-unused-vars': 1,
|
|
|
|
'no-undef': 1,
|
2020-08-05 04:18:39 +02:00
|
|
|
'vue/no-template-key': 1
|
|
|
|
}
|
2020-02-16 19:30:00 +01:00
|
|
|
}
|