Skip to content

Commit c97ef3e

Browse files
authored
chore: 🤖 Bump tsdx version and general upgrades (#36)
- To use .jsx files in the upcoming rich text field editor we need tsdx 0.12.3 together with the workaround mentioned on jaredpalmer/tsdx#443 - Use docz 1.3.2 - Ran `yarn upgrade`
1 parent ea5724b commit c97ef3e

File tree

6 files changed

+3911
-4506
lines changed

6 files changed

+3911
-4506
lines changed

package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"@commitlint/config-conventional": "^8.2.0",
4444
"@contentful/contentful-extension-scripts": "0.14.1",
4545
"@contentful/eslint-config-extension": "0.2.0",
46+
"@contentful/forma-36-fcss": "^0.0.34",
4647
"@contentful/forma-36-react-components": "^3.28.13",
4748
"@contentful/forma-36-tokens": "^0.5.1",
48-
"@contentful/forma-36-fcss": "^0.0.34",
4949
"@testing-library/cypress": "5.0.2",
5050
"@testing-library/jest-dom": "4.2.4",
5151
"@testing-library/react": "9.3.2",
@@ -60,11 +60,15 @@
6060
"cssnano": "4.1.10",
6161
"cypress": "3.6.1",
6262
"cz-lerna-changelog": "^2.0.2",
63-
"docz": "1.2.0",
63+
"docz": "1.3.2",
6464
"docz-theme-default": "1.2.0",
6565
"emotion": "10.0.17",
6666
"eslint": "6.0.1",
6767
"eslint-plugin-cypress": "^2.7.0",
68+
"eslint-plugin-jest": "^23.6.0",
69+
"eslint-plugin-jsx-a11y": "^6.2.3",
70+
"eslint-plugin-react": "^7.18.0",
71+
"eslint-plugin-react-hooks": "^2.3.0",
6872
"husky": "^3.1.0",
6973
"lerna": "^3.19.0",
7074
"lint-staged": "9.4.3",
@@ -77,7 +81,7 @@
7781
"remark-preset-lint-recommended": "^3.0.3",
7882
"remark-validate-links": "^9.0.1",
7983
"start-server-and-test": "^1.10.6",
80-
"tsdx": "0.11.0",
84+
"tsdx": "^0.12.3",
8185
"tslib": "^1.10.0",
8286
"typescript": "3.7.3"
8387
},

packages/date/src/DatepickerInput.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import noop from 'lodash-es/noop';
12
import React, { Component, FocusEventHandler, FocusEvent } from 'react';
23
// eslint-disable-next-line no-restricted-imports
34
import moment from 'moment';
@@ -47,8 +48,8 @@ export type DatePickerProps = {
4748

4849
export class DatepickerInput extends Component<DatePickerProps> {
4950
static defaultProps: Partial<DatePickerProps> = {
50-
onChange: () => {},
51-
onBlur: () => {}
51+
onChange: noop,
52+
onBlur: noop
5253
};
5354

5455
pikaday?: Pikaday;

packages/markdown/src/components/MarkdownToolbar.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import noop from 'lodash-es/noop';
12
import React from 'react';
23
import { css, cx } from 'emotion';
34
import { Button, Tooltip, Icon } from '@contentful/forma-36-react-components';
@@ -7,8 +8,6 @@ import { HeadingSelector } from './HeadingSelector';
78
import { InsertLinkSelector } from './InsertLinkSelector';
89
import { MarkdownActions } from '../types';
910

10-
const noop = () => {};
11-
1211
const styles = {
1312
root: css({
1413
position: 'relative',

packages/multiple-line/src/MultipleLineEditor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function MultipleLineEditor(props: MultipleLineEditorProps) {
3131
error={errors.length > 0}
3232
disabled={disabled}
3333
value={value || ''}
34-
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
34+
onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) => {
3535
setValue(e.target.value);
3636
}}
3737
/>

packages/tags/src/TagsEditor.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import noop from 'lodash/noop';
12
import React, { useState, useCallback } from 'react';
23
import { css } from 'emotion';
34
import tokens from '@contentful/forma-36-tokens';
@@ -7,8 +8,6 @@ import { ConstraintsType, Constraint } from './types';
78
import { SortableContainer, SortableElement, SortableHandle } from 'react-sortable-hoc';
89
import arrayMove from 'array-move';
910

10-
const noop = () => {};
11-
1211
interface TagsEditorProps {
1312
items: string[];
1413
isDisabled: boolean;

0 commit comments

Comments
 (0)