-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.json
71 lines (71 loc) · 2.08 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jsdoc", "eslint-plugin-header"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"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",
" "
]
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-var-requires": ["off"]
},
"ignorePatterns": [
"*.js",
"src/templates/lightningcomponent/lwc/typeScript/*"
]
}