-
Notifications
You must be signed in to change notification settings - Fork 156
/
.eslintrc.js
46 lines (45 loc) · 1.08 KB
/
.eslintrc.js
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
/**
* Copyright IBM Corp. 2018, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
extends: ['eslint-config-carbon', 'plugin:lit/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 11,
},
overrides: [
{
files: ['**/*.ts'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-non-null-assertion': 0,
'jsdoc/check-tag-names': [
'error',
{ definedTags: ['category', 'csspart', 'element', 'slot'] },
],
'lit/no-native-attributes': 0,
},
},
{
files: ['**/*_steps.js', '**/*.steps.js', '**/tests/**'],
globals: {
aChecker: true,
after: true,
before: true,
beforeAll: true,
beforeEach: true,
cy: true,
describe: true,
afterAll: true,
afterEach: true,
it: true,
expect: true,
page: true,
},
},
],
};