cmc-web/webs/cop-web/.eslintrc.js

37 lines
862 B
JavaScript
Raw Normal View History

2024-08-20 12:11:31 +00:00
module.exports = {
root: true,
env: {
2024-08-21 01:17:14 +00:00
node: true,
2024-08-20 12:11:31 +00:00
},
extends: ['plugin:vue/essential', '@vue/standard', '@vue/typescript'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': [
0,
{
vars: 'all',
2024-08-21 01:17:14 +00:00
args: 'none',
},
2024-08-20 12:11:31 +00:00
],
semi: 0,
eqeqeq: 0,
'one-var': 0,
camelcase: 0,
'no-case-declarations': 0,
'space-before-function-paren': 0,
2024-08-21 01:17:14 +00:00
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
'@typescript-eslint/indent': ['error', 2],
2024-08-20 12:11:31 +00:00
'vue/no-mutating-props': 0,
2024-08-21 01:17:14 +00:00
'vue/multi-word-component-names': [
'error',
{
ignores: ['index', 'home'],
},
],
2024-08-20 12:11:31 +00:00
},
parserOptions: {
2024-08-21 01:17:14 +00:00
parser: '@typescript-eslint/parser',
},
}