generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
20 lines (20 loc) · 956 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
* 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
*/
module.exports = {
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/recommended'],
root: true,
rules: {
// this allows you to indent the 2nd line of an @param, which I think helps readability
'jsdoc/check-indentation': ['error' | 'warn', { excludeTags: ['example', 'param'] }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
// we had our messages done before this eslint rule existed, so turn if off for now
'sf-plugin/no-hardcoded-messages-flags': 'off',
// eslint doesn't like that we have a source folder called 'lib'
'no-restricted-imports': 'off',
},
};