Enable oxlint restriction ruleset (#34307)
* Remove stale max-len disablements * Remove stale camelCase & naming-convention disablements * Remove stale ban-ts-comment disablements * Remove stale no-var disablements * Remove stale no-empty-property disablements * Remove stale react rule disablements * Remove stale no-constant-condition disablements * Remove stale no-unused-vars disablements * Remove stale disablements for disabled rules * fixup camelcase * Remove dead code * Tidy code * Tweak oxlint config * Use oxlint to apply jsx/tsx extension consistently * Fix import * Fix imports * Rename affected snapshots * Update more imports * Enable restriction ruleset * Make code comply with new rules * Make code comply with react/button-has-type * Make code comply with typescript/non-nullable-type-assertion-style * Comply with node/no-process-env * Comply with unicorn/prefer-node-protocol * Comply with unicorn/import-style * Comply with unicorn/no-process-exit * Comply with no-proto * Comply with node/handle-callback-err * Comply with import/no-commonjs * Comply with node/no-path-concat * Comply with unicorn/no-length-as-slice-end * Comply with unicorn/no-document-cookie * Comply with unicorn/prefer-module * Comply with typescript/prefer-literal-enum-member * Comply with jsx-a11y/anchor-ambiguous-text * Tweak oxlint config * Fix resolves * Iterate * Iterate * Iterate * Iterate * Iterate * Iterate * Iterate
This commit is contained in:
@@ -8,7 +8,7 @@ Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { EventEmitter } from "events";
|
||||
import { EventEmitter } from "node:events";
|
||||
import { type MatrixEvent, Room, RoomMember, type Thread, ReceiptType } from "matrix-js-sdk/src/matrix";
|
||||
import { KnownMembership } from "matrix-js-sdk/src/types";
|
||||
import { render, within } from "jest-matrix-react";
|
||||
|
||||
@@ -25,6 +25,7 @@ exports[`RoomView for a local room in state CREATING should match the snapshot 1
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -109,6 +110,7 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -305,6 +307,7 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -692,6 +695,7 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -1161,6 +1165,7 @@ exports[`RoomView should hide the composer when hideComposer=true 1`] = `
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -1715,6 +1720,7 @@ exports[`RoomView should hide the pinned message banner when hidePinnedMessageBa
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -2199,6 +2205,7 @@ exports[`RoomView should hide the right panel when hideRightPanel=true 1`] = `
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -2683,6 +2690,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -2903,6 +2911,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
@@ -3445,6 +3454,7 @@ exports[`RoomView video rooms should render joined video room view 1`] = `
|
||||
aria-label="Room info"
|
||||
class="mx_RoomHeader_infoWrapper"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
class="mx_RoomHeader_info _box-flex_1odfs_9"
|
||||
|
||||
Reference in New Issue
Block a user