58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: 'vuepress',
|
|
globals: {
|
|
__VUEPRESS_VERSION__: 'readonly',
|
|
__VUEPRESS_BASE__: 'readonly',
|
|
__VUEPRESS_DEV__: 'readonly',
|
|
__VUEPRESS_SSR__: 'readonly',
|
|
__VUE_HMR_RUNTIME__: 'readonly',
|
|
__VUE_OPTIONS_API__: 'readonly',
|
|
__VUE_PROD_DEVTOOLS__: 'readonly',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.ts', '*.vue', '*.cts'],
|
|
extends: 'vuepress-typescript',
|
|
parserOptions: {
|
|
project: ['tsconfig.json'],
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'vue/component-tags-order': [
|
|
'error',
|
|
{
|
|
order: ['script', 'template', 'style'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/client/config.ts'],
|
|
rules: {
|
|
'vue/match-component-file-name': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/__tests__/**/*.ts'],
|
|
env: {
|
|
jest: true,
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'vue/one-component-per-file': 'off',
|
|
'import/no-extraneous-dependencies': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['docs/**/*.ts'],
|
|
rules: {
|
|
'import/no-extraneous-dependencies': 'off',
|
|
},
|
|
},
|
|
],
|
|
}
|