Improvements made

This commit is contained in:
Guzel738 2021-02-02 13:36:22 +03:00
parent fbd9e5b3e2
commit d59355873e
3 changed files with 6 additions and 7 deletions

View file

@ -31,7 +31,7 @@
"jsx-a11y/label-has-associated-control": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-explicit-any": "error",
"react/jsx-props-no-spreading": 0
"react/jsx-props-no-spreading": "off"
},
"overrides": [
{

View file

@ -35,7 +35,8 @@
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"eslint -c .eslintrc.json --fix",
"git add"
"git add",
"jest --bail --findRelatedTests"
]
},
"scripts": {
@ -50,7 +51,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run tsc --noEmit && lint-staged && npm test"
"pre-commit": "npm run tsc --noEmit && lint-staged"
}
},
"eslintConfig": {

View file

@ -3,10 +3,8 @@ import { mount, shallow } from 'enzyme';
import JSONTree from 'react-json-tree';
import * as useDebounce from 'use-debounce';
import DatePicker from 'react-datepicker';
import Messages, {
Props,
} from '../../../../components/Topics/Details/Messages/Messages';
import PageLoader from '../../../../components/common/PageLoader/PageLoader';
import Messages, { Props } from 'components/Topics/Details/Messages/Messages';
import PageLoader from 'components/common/PageLoader/PageLoader';
describe('Messages component', () => {
beforeEach(() => {