-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
29 lines (28 loc) · 1.09 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import pluginJs from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default [
{ files: ['**/*.{js,mjs,cjs,ts,vue}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
{
rules: {
'no-empty-function': 'off',
'no-console': 'warn',
'vue/html-indent': 'off',
'vue/no-v-html': 'off',
'vue/max-attributes-per-line': 'off',
'vue/attributes-order': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-closing-bracket-newline': 'off',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
},
{ files: ['**/*.vue'], languageOptions: { parserOptions: { parser: tseslint.parser } } },
];