-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
56 lines (56 loc) · 2.03 KB
/
.eslintrc.cjs
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
/*
* Copyright (c) 2022, 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
*/
module.exports = {
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/migration'],
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) 2022, 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'],
},
};