-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc.js
64 lines (64 loc) · 1.64 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
62
63
64
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
plugins: [
'@typescript-eslint',
'import',
'import-newlines',
],
env: {
browser: true,
node: true,
},
extends: [
'airbnb-base',
'airbnb-typescript/base',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
rules: {
indent: 'off',
'import/no-cycle': 'off',
'import-newlines/enforce': ['error', 2, 120],
'no-multi-assign': 'off',
'func-names': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
'class-methods-use-this': 'off',
'max-classes-per-file': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/indent': ['error', 4, {
SwitchCase: 1,
}],
'max-len': [
'error',
{
code: 120,
ignoreUrls: true,
},
],
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'jsdoc/require-throws': 'off',
},
},
],
};