-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.cjs
36 lines (36 loc) · 1.24 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
module.exports = {
extends: ['@salesforce/eslint-config-lwc/recommended', 'plugin:jsdoc/recommended'],
plugins: ['notice', 'prettier', 'jsdoc'],
rules: {
'notice/notice': [
'error',
{
mustMatch: 'Copyright \\(c\\) \\d{4}, salesforce.com, inc.',
template: [
'/*',
' * Copyright (c) <%= YEAR %>, salesforce.com, inc.',
' * All rights reserved.',
' * SPDX-License-Identifier: Apache-2.0',
' * For full license text, see the LICENSE file in the repo',
' * root or https://opensource.org/licenses/apache-2-0/',
' */',
'',
].join('\n'),
},
],
'prettier/prettier': 'error',
'jsdoc/check-tag-names': ['warn', { definedTags: ['slot'] }],
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
},
overrides: [
{
files: ['*.test.js'],
rules: {
'@lwc/lwc/no-unexpected-wire-adapter-usages': 'off',
},
env: {
node: true,
},
},
],
};