-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
46 lines (45 loc) · 1.36 KB
/
eslint.config.js
File metadata and controls
46 lines (45 loc) · 1.36 KB
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
import globals from 'globals'
import pluginJs from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import autoImports from './.eslintrc-auto-import.json' with { type: 'json' }
export default [
{
ignores: [
'eslint.config.js',
'stylelint.config.cjs',
'postcss.config.cjs',
'vite.config.js',
'**/dist/*',
'**/styleguide/*',
'**/node_modules/**',
'**/@volverjs/**',
'**/volver/**',
'**/*.json',
],
},
pluginJs.configs.recommended,
...pluginVue.configs['flat/recommended'],
{
languageOptions: {
...autoImports,
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...autoImports.globals,
...globals.browser
}
},
rules: {
'no-debugger': 'warn',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'vue/multi-word-component-names': 'off',
'no-unused-vars': 'off',
'sort-imports': 'off',
'vue/block-lang': 'off',
// for shims Window interface
'@intlify/vue-i18n/no-raw-text': 'off',
},
},
eslintPluginPrettierRecommended,
]