@@ -87,32 +87,71 @@ module.exports = {
87
87
"jsx-a11y/role-supports-aria-props" : "off" ,
88
88
"jsx-a11y/tabindex-no-positive" : "off" ,
89
89
} ,
90
- overrides : [ {
91
- files : [
92
- "src/**/*.{ts,tsx}" ,
93
- "test/**/*.{ts,tsx}" ,
94
- ] ,
95
- extends : [
96
- "plugin:matrix-org/typescript" ,
97
- "plugin:matrix-org/react" ,
98
- ] ,
99
- rules : {
100
- // Things we do that break the ideal style
101
- "prefer-promise-reject-errors" : "off" ,
102
- "quotes" : "off" ,
103
- "no-extra-boolean-cast" : "off" ,
90
+ overrides : [
91
+ {
92
+ files : [
93
+ "src/**/*.{ts,tsx}" ,
94
+ "test/**/*.{ts,tsx}" ,
95
+ ] ,
96
+ extends : [
97
+ "plugin:matrix-org/typescript" ,
98
+ "plugin:matrix-org/react" ,
99
+ ] ,
100
+ rules : {
101
+ // Things we do that break the ideal style
102
+ "prefer-promise-reject-errors" : "off" ,
103
+ "quotes" : "off" ,
104
+ "no-extra-boolean-cast" : "off" ,
104
105
105
- // Remove Babel things manually due to override limitations
106
- "@babel/no-invalid-this" : [ "off" ] ,
106
+ // Remove Babel things manually due to override limitations
107
+ "@babel/no-invalid-this" : [ "off" ] ,
107
108
108
- // We're okay being explicit at the moment
109
- "@typescript-eslint/no-empty-interface" : "off" ,
110
- // We disable this while we're transitioning
111
- "@typescript-eslint/no-explicit-any" : "off" ,
112
- // We'd rather not do this but we do
113
- "@typescript-eslint/ban-ts-comment" : "off" ,
109
+ // We're okay being explicit at the moment
110
+ "@typescript-eslint/no-empty-interface" : "off" ,
111
+ // We disable this while we're transitioning
112
+ "@typescript-eslint/no-explicit-any" : "off" ,
113
+ // We'd rather not do this but we do
114
+ "@typescript-eslint/ban-ts-comment" : "off" ,
115
+ } ,
114
116
} ,
115
- } ] ,
117
+ // temporary override for offending icon require files
118
+ {
119
+ files : [
120
+ "src/SdkConfig.ts" ,
121
+ "src/components/structures/FileDropTarget.tsx" ,
122
+ "src/components/structures/RoomStatusBar.tsx" ,
123
+ "src/components/structures/UserMenu.tsx" ,
124
+ "src/components/views/avatars/WidgetAvatar.tsx" ,
125
+ "src/components/views/dialogs/AddExistingToSpaceDialog.tsx" ,
126
+ "src/components/views/dialogs/CreateSpaceFromCommunityDialog.tsx" ,
127
+ "src/components/views/dialogs/ForwardDialog.tsx" ,
128
+ "src/components/views/dialogs/InviteDialog.tsx" ,
129
+ "src/components/views/dialogs/ModalWidgetDialog.tsx" ,
130
+ "src/components/views/dialogs/UploadConfirmDialog.tsx" ,
131
+ "src/components/views/dialogs/security/SetupEncryptionDialog.tsx" ,
132
+ "src/components/views/elements/AddressTile.tsx" ,
133
+ "src/components/views/elements/AppWarning.tsx" ,
134
+ "src/components/views/elements/SSOButtons.tsx" ,
135
+ "src/components/views/messages/MAudioBody.tsx" ,
136
+ "src/components/views/messages/MImageBody.tsx" ,
137
+ "src/components/views/messages/MFileBody.tsx" ,
138
+ "src/components/views/messages/MStickerBody.tsx" ,
139
+ "src/components/views/messages/MVideoBody.tsx" ,
140
+ "src/components/views/messages/MVoiceMessageBody.tsx" ,
141
+ "src/components/views/right_panel/EncryptionPanel.tsx" ,
142
+ "src/components/views/rooms/EntityTile.tsx" ,
143
+ "src/components/views/rooms/LinkPreviewGroup.tsx" ,
144
+ "src/components/views/rooms/MemberList.tsx" ,
145
+ "src/components/views/rooms/MessageComposer.tsx" ,
146
+ "src/components/views/rooms/ReplyPreview.tsx" ,
147
+ "src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx" ,
148
+ "src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx"
149
+ ] ,
150
+ rules : {
151
+ "@typescript-eslint/no-var-requires" : "off" ,
152
+ } ,
153
+ }
154
+ ] ,
116
155
settings : {
117
156
react : {
118
157
version : "detect" ,
0 commit comments