Skip to content

Commit

Permalink
Chore/bump packages (#1917)
Browse files Browse the repository at this point in the history
* Bump eslint-plugin-jest

* Bump eslint dependencies

* Bump eslint-plugin-prettier

* Update root package-lock

* Working lerna bootstrap with eslint packages bump

* Allow explicit any in eslint

* Run linter
  • Loading branch information
vinkabuki authored Oct 16, 2023
1 parent eb2caab commit 8c63ea6
Show file tree
Hide file tree
Showing 23 changed files with 6,555 additions and 1,039 deletions.
5,502 changes: 4,908 additions & 594 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ describe('Search Modal', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ describe('Channels panel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')
const generalChannel = publicChannels.selectors.generalChannel(store.getState())
expect(generalChannel).not.toBeUndefined()
const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ describe('IdentityPanel', () => {

const factory = await getFactory(store)

const community: Community = await factory.create<
ReturnType<typeof communities.actions.addNewCommunity>['payload']
>('Community')
const community: Community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const result = renderComponent(
<IdentityPanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface TextWithLinkProps {
tag: string
label: string
action: () => void
}
},
]
}

Expand Down
11 changes: 5 additions & 6 deletions packages/desktop/src/renderer/storybook/decorators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import { ThemeProvider, StyledEngineProvider } from '@mui/material/styles'
import theme from '../theme'
import { Store } from '../sagas/store.types'

export const withStore = (store: Store) => (Story: React.FC) =>
(
<Provider store={store}>
<Story />
</Provider>
)
export const withStore = (store: Store) => (Story: React.FC) => (
<Provider store={store}>
<Story />
</Provider>
)

export const withTheme = (Story: React.FC) => (
<StyledEngineProvider injectFirst>
Expand Down
5 changes: 2 additions & 3 deletions packages/desktop/src/rtl-tests/app.restart.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ describe('Restart app works correctly', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

await factory.create<ReturnType<typeof identityActions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down
5 changes: 2 additions & 3 deletions packages/desktop/src/rtl-tests/channel.add.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ describe('Add new channel', () => {
)
const factory = await getFactory(store)

const channel = await factory.create<ReturnType<typeof publicChannels.actions.addChannel>['payload']>(
'PublicChannel'
)
const channel =
await factory.create<ReturnType<typeof publicChannels.actions.addChannel>['payload']>('PublicChannel')

renderComponent(<CreateChannel />, store)

Expand Down
65 changes: 26 additions & 39 deletions packages/desktop/src/rtl-tests/channel.main.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const entities = store.getState().PublicChannels.channels.entities

Expand Down Expand Up @@ -264,9 +263,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const entities = store.getState().PublicChannels.channels.entities

Expand Down Expand Up @@ -329,9 +327,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')
await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
nickname: 'john',
Expand Down Expand Up @@ -361,9 +358,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const entities = store.getState().PublicChannels.channels.entities

Expand Down Expand Up @@ -411,9 +407,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -487,9 +482,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const entities = store.getState().PublicChannels.channels.entities

Expand Down Expand Up @@ -577,9 +571,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -707,9 +700,8 @@ describe('Channel', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -755,9 +747,8 @@ describe('Channel', () => {

const factory = await getFactory(initialState)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -1028,9 +1019,8 @@ describe('Channel', () => {

const factory = await getFactory(initialState)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -1125,9 +1115,8 @@ describe('Channel', () => {

const factory = await getFactory(initialState)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -1242,9 +1231,8 @@ describe('Channel', () => {

const factory = await getFactory(initialState)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down Expand Up @@ -1361,9 +1349,8 @@ describe('Channel', () => {

const factory = await getFactory(initialState)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

const alice = await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down
5 changes: 2 additions & 3 deletions packages/desktop/src/rtl-tests/channel.menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ describe('Channel menu', () => {

const factory = await getFactory(store)

const community = await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>(
'Community'
)
const community =
await factory.create<ReturnType<typeof communities.actions.addNewCommunity>['payload']>('Community')

await factory.create<ReturnType<typeof identity.actions.addNewIdentity>['payload']>('Identity', {
id: community.id,
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = {
'@typescript-eslint/default-param-last': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/no-base-to-string': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/dot-notation': 'off',
Expand Down
Loading

0 comments on commit 8c63ea6

Please sign in to comment.