mirror of
https://github.com/purocean/yn.git
synced 2026-10-29 18:15:23 +08:00
40 lines
976 B
JavaScript
40 lines
976 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true
|
|
},
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'@vue/standard',
|
|
'@vue/typescript/recommended'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2020
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/camelcase': 'off',
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/ban-types': 'off',
|
|
'@typescript-eslint/no-extra-non-null-assertion': 'off',
|
|
'standard/no-callback-literal': 'off',
|
|
'no-console': 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'comma-dangle': 'off',
|
|
'no-unused-expressions': 'off'
|
|
},
|
|
overrides: [
|
|
{
|
|
files: [
|
|
'**/__tests__/*.{j,t}s?(x)',
|
|
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
],
|
|
env: {
|
|
mocha: true
|
|
}
|
|
}
|
|
]
|
|
}
|