-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.json
74 lines (74 loc) · 1.97 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
71
72
73
74
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jsdoc", "eslint-plugin-header"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "warn",
"camelcase": "off",
"@typescript-eslint/camelcase": "off",
"constructor-super": "warn",
"curly": "error",
"eqeqeq": "error",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-debugger": "warn",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extra-semi": "warn",
"no-redeclare": "error",
"no-sparse-arrays": "error",
"no-throw-literal": "error",
"no-unsafe-finally": "warn",
"no-unused-labels": "warn",
"no-restricted-globals": [
"warn",
"name",
"length",
"event",
"closed",
"external",
"status",
"origin",
"context"
], // non-complete list of globals that are easy to access unintentionally
"no-var": "error",
"jsdoc/no-types": "warn",
"@typescript-eslint/semi": "warn",
"header/header": [
2,
"block",
[
"",
{
"pattern": " \\* Copyright \\(c\\) \\d{4}, salesforce\\.com, inc\\.",
"template": " * Copyright (c) 2021, salesforce.com, inc."
},
" * All rights reserved.",
" * Licensed under the BSD 3-Clause license.",
" * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause",
" "
]
]
},
"ignorePatterns": ["*.js"],
"overrides": [
{
"files": ["src/common/cancellation.ts", "src/common/types.ts"],
"rules": {
"header/header": ["off"]
}
}
]
}