Commit e81fc69
authored
chore: update ESLint, migrate configuration file (#2574)
### π― Goal
Time to UPGRADE and migrate. :)
PR is divided into multiple commits, ESLint changes, Prettier changes
and manual changes - we can drop Prettier changes for `master` merges
(so that I don't have to deal with merge conflicts) and merge this PR
once our PR backlog is somewhat empty.
#### Notable Changes
- changed CI to run on Node@lts/* instead of v16 and v18
- adjusted `bundle-cjs.mjs` and `getPackageVersion.mjs` to use import
for `package.json` instead (`with` assertion)
- reduced Prettier print-width to 90 (from 100, default is 80) as some
new formattings are just weird
- omitted `eslint-plugin-prettier` as Prettier format step is included
in CI anyway
- explicitly installed `@testing-library/dom` as it's required by our
tests and is no longer installed with `eslint-plugin-jest-dom`
- `noUnusedParameters` and `noUnusedLocals` (`tsconfig.json`) are now
set to `false` to not fail build steps, developers are still warned
through ESLint
- omitted certain other plugins since those weren't used apparently,
compare against these old configs - [generated against
Attachment.test.js](https://gist.github.com/arnautov-anton/9bdce867ed1ddf2b82a6f3f7a5bd9e04)
and [against
Attachment.tsx](https://gist.github.com/arnautov-anton/ee8dbdb8fda4906a0c436c21686e2105)1 parent a4d6d83 commit e81fc69
File tree
399 files changed
+7309
-4966
lines changed- .github/workflows
- e2e/fixtures/data
- examples
- nextjs/pages
- vite
- scripts
- src
- components
- AIStateIndicator
- hooks
- Attachment
- __tests__
- components
- hooks
- AutoCompleteTextarea
- Avatar
- __tests__
- ChannelHeader
- __tests__
- ChannelList
- __tests__
- hooks
- ChannelPreview
- __tests__
- hooks
- __tests__
- ChannelSearch
- __tests__
- hooks
- Channel
- __tests__
- hooks
- ChatAutoComplete
- __tests__
- ChatView
- Chat
- hooks
- CommandItem
- __tests__
- DateSeparator
- __tests__
- Dialog
- __tests__
- DragAndDrop
- EmoticonItem
- __tests__
- EmptyStateIndicator/__tests__
- EventComponent
- __tests__
- Form
- Gallery
- __tests__
- InfiniteScrollPaginator
- __tests__
- hooks
- LoadMore
- __tests__
- Loading
- __tests__
- MML
- __tests__
- MediaRecorder
- AudioRecorder
- __tests__
- classes
- __tests__
- hooks
- __tests__
- transcode
- MessageActions
- __tests__
- hooks
- MessageBounce
- MessageInput
- AttachmentPreviewList
- __tests__
- hooks
- __tests__
- MessageList
- __tests__
- hooks
- MessageList
- VirtualizedMessageList
- __tests__
- Message
- __tests__
- hooks
- __tests__
- renderText
- __tests__
- componentRenderers
- rehypePlugins
- remarkPlugins
- Modal
- __tests__
- Poll
- PollActions
- PollResults
- PollCreationDialog
- __tests__
- hooks
- ReactFileUtilities
- FileIcon
- Reactions
- __tests__
- hooks
- utils
- SafeAnchor/__tests__
- Threads
- ThreadList
- Thread
- __tests__
- Tooltip
- TypingIndicator
- __tests__
- UserItem/__tests__
- Window
- __tests__
- context
- utils
- experimental/MessageActions
- hooks
- i18n
- __tests__
- mock-builders
- __test__
- api
- browser
- generator
- plugins
- Emojis
- encoders
- store/hooks
- stories
- types
- utils
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
399 files changed
+7309
-4966
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments