-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.cjs
42 lines (42 loc) · 1.02 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'airbnb-base',
'plugin:vue/vue3-recommended',
'plugin:tailwindcss/recommended',
'./.eslintrc-auto-import.json',
],
parserOptions: {
ecmaVersion: 2021,
},
plugins: ['vue', 'tailwindcss'],
rules: {
'import/extensions': ['error', 'always', {
js: 'always',
vue: 'always',
}],
'import/no-extraneous-dependencies': [0, { 'packageDir ': './src/' }],
'max-len': ['error', {
code: 160,
ignorePattern: 'class="([\\s\\S]*?)"|d="([\\s\\S]*?)"', // ignore classes or svg draw attributes
ignoreUrls: true,
}],
'vue/multi-word-component-names': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', 'svg'],
moduleDirectory: ['node_modules', 'src/'],
},
alias: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', 'svg'],
map: [['@', './src']],
},
},
},
};