Improvements made
This commit is contained in:
parent
fbd9e5b3e2
commit
d59355873e
3 changed files with 6 additions and 7 deletions
|
@ -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": [
|
||||
{
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue