-
Notifications
You must be signed in to change notification settings - Fork 69
/
.eslintrc.json
70 lines (70 loc) · 1.67 KB
/
.eslintrc.json
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
{
"env": {
"es2021": true,
"node": true,
"browser": true,
"commonjs": true,
"mocha": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": 12
},
"settings": {
"import/resolver": {
"typescript": {},
"node": {
"extensions": [".js", ".ts"]
}
}
},
"ignorePatterns": ["dist/**", "docs/**", "examples/**", "webpack/**"],
"rules": {
"tsdoc/syntax": "warn",
"indent": ["error", 2, { "SwitchCase": 1 }],
"semi": ["error", "always"],
"quotes": ["error", "single"],
"linebreak-style": ["error", "unix"],
"spaced-comment": "off",
"func-names": "off",
"no-shadow": "off",
"class-methods-use-this": "off",
"dot-notation": "off",
"no-param-reassign": ["error", { "props": false }],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"camelcase": ["error", {
"allow": ["SendEmailV3_1"]
}]
},
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"import/extensions": 0,
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-empty-interface": "off"
},
"plugins": [
"eslint-plugin-tsdoc",
"@typescript-eslint"
]
}
]
}