-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
61 lines (53 loc) · 1.46 KB
/
.eslintrc.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2020: true
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser'
},
ignorePatterns: ['dist', '.eslintrc.js', 'tailwind.config.cjs'],
extends: [
'eslint:recommended',
'plugin:vue/strongly-recommended',
'plugin:@typescript-eslint/recommended',
'@nuxtjs/eslint-config-typescript',
'plugin:unicorn/recommended',
'plugin:prettier/recommended',
'prettier'
],
plugins: ['@typescript-eslint', 'simple-import-sort', 'import', 'prettier'],
rules: {
// 'no-console': 'warn',
curly: 'error',
'no-console': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/filename-case': 'off',
'unicorn/prefer-module': 'off',
'unicorn/no-null': 'off',
'unicorn/no-useless-undefined': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-empty-file': 'off',
'unicorn/expiring-todo-comments': 'off',
'vue/no-multiple-template-root': 'off',
'vue/no-v-for-template-key': 'off',
'vue/no-v-html': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_'
}
],
'import/order': 'off',
'simple-import-sort/imports': 'error',
'import/newline-after-import': 'error',
'simple-import-sort/exports': 'error',
'import/first': 'error'
}
}