-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (41 loc) · 1.3 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
/* eslint-disable sonarjs/no-duplicate-string */
module.exports = {
env: {
browser: true,
commonjs: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'next/core-web-vitals'
],
rules: {
// DISABLE
'@typescript-eslint/no-empty-interface': [0],
'@typescript-eslint/no-explicit-any': [0],
'@typescript-eslint/no-var-requires': [0],
'@typescript-eslint/no-non-null-assertion': [0],
'react/prop-types': [0],
'no-control-regex': [0],
// WARN
'@typescript-eslint/ban-ts-comment': [
1,
{
'ts-expect-error': 'allow-with-description',
'ts-ignore': 'allow-with-description',
'ts-nocheck': 'allow-with-description',
'minimumDescriptionLength': 2
}
],
'indent': [1, 4, { SwitchCase: 1 }],
'max-len': [1, { code: 120 }],
// 'prettier/prettier': [1],
// ERROR
'linebreak-style': [2, 'windows'],
'quotes': [2, 'single'],
'semi': [2, 'never'],
'@typescript-eslint/explicit-module-boundary-types': [1, { allowArgumentsExplicitlyTypedAsAny: true }]
}
}