-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.38 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
/* eslint-disable */
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
},
env: {
jest: true,
},
extends: [
'plugin:vue/recommended',
'@nuxtjs/eslint-config-typescript',
'plugin:sonarjs/recommended',
'plugin:nuxt/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'@regru/regru',
],
plugins: [
'sonarjs',
'@typescript-eslint',
],
overrides: [
{
files: ['*.mdx'],
extends: 'plugin:mdx/recommended',
rules: {
'prettier/prettier': 'off',
}
},
],
rules: {
'sonarjs/cognitive-complexity': [ 'error', 20 ],
'compat/compat': 'off',
'space-in-parens': 'off',
'array-bracket-spacing': ['error', 'always'],
'semi': 'off',
'padded-blocks': 'off',
'import/named': 'off',
'vue/comment-directive': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-params': 'off',
}
}