Files
remanso/.eslintrc.js
2021-06-12 16:11:57 +02:00

57 lines
1.2 KiB
JavaScript

module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/recommended',
'@vue/typescript/recommended',
'@vue/prettier/@typescript-eslint',
'plugin:prettier-vue/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/camelcase': 'off',
'prettier-vue/prettier': [
'error',
{
semi: false,
singleQuote: true,
trailingComma: 'none',
arrowParens: 'always'
}
],
'vue/no-v-html': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'vue-demi',
importNames: ['computed'],
message: 'Please use computed from vue instead.'
}
]
}
]
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}