mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 22:48:03 +08:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
|
/* eslint-env node */
|
||
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
||
|
|
||
|
module.exports = {
|
||
|
root: true,
|
||
|
env: {
|
||
|
browser: true,
|
||
|
commonjs: true,
|
||
|
es6: true,
|
||
|
node: true,
|
||
|
'vue/setup-compiler-macros': true
|
||
|
},
|
||
|
extends: [
|
||
|
'plugin:vue/vue3-recommended',
|
||
|
'eslint:recommended',
|
||
|
'@vue/eslint-config-typescript/recommended',
|
||
|
'@vue/eslint-config-prettier'
|
||
|
],
|
||
|
rules: {
|
||
|
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
|
||
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
||
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||
|
'@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
|
||
|
'@typescript-eslint/no-explicit-any': 'error',
|
||
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
||
|
'@typescript-eslint/no-var-requires': 'off',
|
||
|
'vue/require-default-prop': 'off',
|
||
|
'vue/multi-word-component-names': 'off'
|
||
|
},
|
||
|
overrides: [
|
||
|
{
|
||
|
files: ['*.js'],
|
||
|
rules: {
|
||
|
'@typescript-eslint/explicit-function-return-type': 'off'
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|