-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
62 lines (59 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import globals from 'globals'
import pluginJs from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import eslintConfigPrettier from 'eslint-config-prettier'
import html from '@html-eslint/eslint-plugin'
import htmlParser from '@html-eslint/parser'
export default [
{ files: ['**/*.{js,mjs,cjs,vue}'] },
{
ignores: [
'**/node_modules',
'**/package.json',
'**/package-lock.json',
'.git',
'**/dist',
'docs/.vuepress/dist',
'docs/.vitepress/dist',
'docs/.vitepress/cache',
'**/coverage',
'**/libs',
'**/deprecated',
],
},
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node,
globalThis: 'readonly',
},
parser: htmlParser,
},
},
{
plugins: {
'@html-eslint': html,
},
},
{
rules: {
eqeqeq: 'error',
'no-new': 0,
'no-console': 'off',
'no-debugger': 'off',
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/multi-word-component-names': [
'error',
{
ignores: ['Layout', 'basico', 'default'],
},
],
},
},
pluginJs.configs.recommended,
...pluginVue.configs['flat/essential'],
eslintConfigPrettier,
]