Skip to content

Commit 56bcc75

Browse files
committed
turn no-non-null-assertion rule off in eslint config
1 parent 9355d33 commit 56bcc75

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"globals": {
99
"TabContainerElement": "readable"
1010
},
11+
"rules": {
12+
"@typescript-eslint/no-non-null-assertion": "off"
13+
},
1114
"overrides": [
1215
{
1316
"files": ["test/**/*.js", "prettier.config.js"],

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export default class TabContainerElement extends HTMLElement {
77
if (!(target instanceof HTMLElement)) return
88
if (target.getAttribute('role') !== 'tab' && !target.closest('[role="tablist"]')) return
99
const tabs = Array.from(this.querySelectorAll('[role="tablist"] [role="tab"]'))
10-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1110
const currentIndex = tabs.indexOf(tabs.find(tab => tab.matches('[aria-selected="true"]'))!)
1211

1312
if (event.code === 'ArrowRight') {

0 commit comments

Comments
 (0)