-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
39 lines (38 loc) · 1.18 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
30
31
32
33
34
35
36
37
38
39
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginVue from 'eslint-plugin-vue';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginYml from 'eslint-plugin-yml';
import eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';
import html from '@html-eslint/eslint-plugin';
import json from 'eslint-plugin-json';
export default [
{ ignores: ['dist/*'] },
{ files: ['**/*.{js,mjs,cjs,ts,vue}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/essential'],
{
rules: {
'vue/multi-word-component-names': 'off',
},
},
...eslintPluginYml.configs['flat/recommended'],
...eslintPluginVueScopedCSS.configs['flat/recommended'],
{ files: ['**/*.vue'], languageOptions: { parserOptions: { parser: tseslint.parser } } },
eslintConfigPrettier,
{
...html.configs['flat/recommended'],
files: ['**/*.html'],
rules: {
'@html-eslint/indent': ['error', 2],
},
},
{
...json.configs['recommended'],
files: ['**/*.json'],
ignores: ['tsconfig.json'],
},
];