mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
35 lines
778 B
JavaScript
35 lines
778 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'@vue/standard'
|
|
],
|
|
parserOptions: {
|
|
parser: '@babel/eslint-parser'
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-case-declarations': 'off',
|
|
'max-len': [2, 100, 4, { ignoreUrls: true }],
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-mutating-props': 'warn',
|
|
'vue/no-reserved-component-names': 'warn',
|
|
'vue/no-v-model-argument': 'off'
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
'**/__tests__/*.{j,t}s?(x)',
|
|
'**/tests/**/*.spec.{j,t}s?(x)'
|
|
],
|
|
env: {
|
|
mocha: true
|
|
}
|
|
}
|
|
]
|
|
}
|