This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
generated from jeremylvln/AdventOfCode2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
79 lines (79 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = {
env: {
node: true,
},
extends: ['plugin:prettier/recommended', 'plugin:unicorn/recommended'],
overrides: [
{
files: ['*.ts'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:sonarjs/recommended',
],
plugins: ['import', 'unused-imports', 'sonarjs'],
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: 'tsconfig.json',
},
},
},
rules: {
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
alphabetize: { order: 'asc', caseInsensitive: true },
'newlines-between': 'always',
},
],
'import/newline-after-import': 'error',
'import/no-unused-modules': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'unused-imports/no-unused-imports-ts': ['error'],
'unused-imports/no-unused-vars-ts': [
'warn',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'unicorn/catch-error-name': [
'error',
{
name: 'err',
},
],
'unicorn/filename-case': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/prevent-abbreviations': [
'warn',
{
checkFilenames: false,
},
],
'unicorn/no-array-reduce': 'off',
'sonarjs/cognitive-complexity': 'off',
},
},
],
};