chore: fix eslint problem

pull/13/head
moonrailgun 4 years ago
parent be40bb7993
commit 7055b1f195

@ -27,5 +27,6 @@ module.exports = {
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'react/prop-types': 'off',
},
};

@ -13,6 +13,7 @@
"private": true,
"scripts": {
"prepare": "husky install",
"lint:fix": "eslint --fix './**/*.{ts,tsx}'",
"test": "jest"
},
"lint-staged": {

@ -19,9 +19,8 @@ export interface FastFormFieldProps extends FastFormFieldCommon {
/**
*
*/
export type FastFormFieldComponent<T = {}> = React.ComponentType<
FastFormFieldProps & T
>;
export type FastFormFieldComponent<T = Record<string, unknown>> =
React.ComponentType<FastFormFieldProps & T>;
const fieldMap = new Map<string, FastFormFieldComponent>();

@ -1,7 +1,5 @@
import _isObject from 'lodash/isObject';
import _get from 'lodash/get';
import _isNull from 'lodash/isNull';
import _isNil from 'lodash/isNil';
import jwtDecode from 'jwt-decode';
import { getStorage } from 'pawchat-shared';

Loading…
Cancel
Save