51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
import eslint from '@eslint/js';
|
|
import stylistic from '@stylistic/eslint-plugin';
|
|
import prettier from 'eslint-config-prettier';
|
|
import {
|
|
defineConfigWithVueTs,
|
|
vueTsConfigs,
|
|
} from '@vue/eslint-config-typescript';
|
|
import pluginVue from 'eslint-plugin-vue';
|
|
import globals from 'globals';
|
|
|
|
export default defineConfigWithVueTs(
|
|
eslint.configs.recommended,
|
|
...pluginVue.configs['flat/essential'],
|
|
vueTsConfigs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.browser,
|
|
},
|
|
},
|
|
plugins: {
|
|
'@stylistic': stylistic,
|
|
},
|
|
rules: {
|
|
curly: ['error', 'all'],
|
|
'@stylistic/multiline-comment-style': [
|
|
'error',
|
|
'separate-lines',
|
|
{ checkJSDoc: false },
|
|
],
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
},
|
|
},
|
|
prettier,
|
|
{
|
|
ignores: [
|
|
'node_modules/',
|
|
'**/lib/',
|
|
'**/dist/',
|
|
'**/dist-ssr/',
|
|
'**/coverage/',
|
|
'**/.vitepress/cache/',
|
|
'**/.vitepress/dist/',
|
|
'**/*.js',
|
|
],
|
|
},
|
|
);
|