Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
twisty committed Jan 13, 2020
2 parents efdfa2d + e892733 commit 4a9239f
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
],
plugins: ["prettier"],
rules: {
"import/no-unresolved": "error",
"prettier/prettier": [
"error",
{
Expand Down Expand Up @@ -58,6 +59,9 @@ module.exports = {
react: {
version: "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
// use <root>/tsconfig.json
typescript: {}
Expand Down
6 changes: 3 additions & 3 deletions examples/playground/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, browser */

import React from 'react';
import ReactDOM from 'react-dom';
import * as React from 'react';
import {render} from 'react-dom';
import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
render(<App />, document.getElementById('root'));
2 changes: 1 addition & 1 deletion examples/playground/src/options.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env node, browser */

import React from 'react';
import * as React from 'react';

import {CheckboxGroup, RadioGroup, Form} from 'formsy-react-components';

Expand Down
6 changes: 3 additions & 3 deletions examples/refs/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node, browser */

import React from 'react';
import ReactDOM from 'react-dom';
import * as React from 'react';
import {render} from 'react-dom';

import {
Form,
Expand Down Expand Up @@ -105,4 +105,4 @@ class App extends React.Component {
}
}

ReactDOM.render(<App />, document.getElementById('root'));
render(<App />, document.getElementById('root'));
2 changes: 1 addition & 1 deletion src/components/__tests__/input-test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* globals jest, describe, it, expect, beforeEach */

import React from 'react';
import * as React from 'react';
import {mount} from 'enzyme';

import Input from '../input';
Expand Down
2 changes: 1 addition & 1 deletion src/components/__tests__/test-helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {configure} from 'enzyme';
import EnzymeAdapter from 'enzyme-adapter-react-16';
import EnzymeAdapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/default

configure({adapter: new EnzymeAdapter()});
4 changes: 2 additions & 2 deletions src/components/controls/input.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import classNames from 'classnames/dedupe';
import * as React from 'react';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved

const defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/controls/select.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {CommonProps} from './common-prop-types';

type ControlProps = React.SelectHTMLAttributes<HTMLSelectElement>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/controls/textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {CommonProps} from './common-prop-types';

type ControlProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/label.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import RequiredSymbol from './required-symbol';
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
import {LayoutType} from '../types';
Expand Down
4 changes: 2 additions & 2 deletions src/components/row.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import Label from './label';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
import Label from './label';
import {LayoutType} from '../types';

interface RowProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/select.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {componentDefaultProps} from './component-common';
import ErrorMessages from './error-messages';
import Help from './help';
Expand Down
4 changes: 2 additions & 2 deletions src/form.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import classNames from 'classnames/dedupe';
import Formsy, {FormsyProps} from 'formsy-react';
import classNames from 'classnames/dedupe'; // eslint-disable-line import/default
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
import Formsy, {FormsyProps} from 'formsy-react';
import {LayoutType} from './types';
import FrcContext from './context/frc';

Expand Down
2 changes: 1 addition & 1 deletion src/hoc/__tests__/component-test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* globals describe, expect, it */

import React from 'react';
import * as React from 'react';
import Formsy, {withFormsy} from 'formsy-react';
import {mount} from 'enzyme';
import withFRC from '../component';
Expand Down
2 changes: 1 addition & 1 deletion src/hoc/component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import FrcContext from '../context/frc';
import {
getId,
Expand Down

0 comments on commit 4a9239f

Please sign in to comment.