-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
55 lines (47 loc) · 1.14 KB
/
.eslintrc.cjs
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
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
// Ignore every file but the patterns specified after '/*'
ignorePatterns: [
'/*',
'!/components', // all files inside /components
'!/tools', // all files inside /tools
'!/*.js', // all JS files in root dir
],
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'plugin:storybook/recommended',
'prettier',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:vitest-globals/recommended',
],
plugins: ['vue'],
parser: 'vue-eslint-parser',
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'vue/block-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/attribute-hyphenation': ['error', 'never'],
},
env: {
'vitest-globals/env': true,
},
parserOptions: {
ecmaVersion: 'latest',
},
overrides: [
// Config for files that run in node env (config files, etc)
{
files: ['*.config.js', '.eslintrc.js'],
env: {
node: true,
},
},
],
};