mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
39 lines
1017 B
JavaScript
39 lines
1017 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'@vue/typescript/recommended',
|
|
'plugin:vue/vue3-essential',
|
|
'prettier',
|
|
'@vue/eslint-config-typescript',
|
|
'plugin:oxlint/recommended',
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
|
|
'vue/no-mutating-props': ['off'],
|
|
'@typescript-eslint/no-explicit-any': ['off'],
|
|
'@typescript-eslint/no-var-requires': ['warn'],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'@vue/typescript/recommended',
|
|
// other TypeScript specific configurations...
|
|
],
|
|
rules: {
|
|
// TypeScript specific rules...
|
|
'@typescript-eslint/no-explicit-any': ['off'],
|
|
},
|
|
},
|
|
],
|
|
}
|