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", // e.g. "@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-empty-function': 'off',
'react/prop-types': 'off',
}, },
}; };

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

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

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

Loading…
Cancel
Save