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",
|
"jsx-a11y/label-has-associated-control": "off",
|
||||||
"import/prefer-default-export": "off",
|
"import/prefer-default-export": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "error",
|
"@typescript-eslint/no-explicit-any": "error",
|
||||||
"react/jsx-props-no-spreading": 0
|
"react/jsx-props-no-spreading": "off"
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,ts,jsx,tsx}": [
|
"*.{js,ts,jsx,tsx}": [
|
||||||
"eslint -c .eslintrc.json --fix",
|
"eslint -c .eslintrc.json --fix",
|
||||||
"git add"
|
"git add",
|
||||||
|
"jest --bail --findRelatedTests"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "npm run tsc --noEmit && lint-staged && npm test"
|
"pre-commit": "npm run tsc --noEmit && lint-staged"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|
|
@ -3,10 +3,8 @@ import { mount, shallow } from 'enzyme';
|
||||||
import JSONTree from 'react-json-tree';
|
import JSONTree from 'react-json-tree';
|
||||||
import * as useDebounce from 'use-debounce';
|
import * as useDebounce from 'use-debounce';
|
||||||
import DatePicker from 'react-datepicker';
|
import DatePicker from 'react-datepicker';
|
||||||
import Messages, {
|
import Messages, { Props } from 'components/Topics/Details/Messages/Messages';
|
||||||
Props,
|
import PageLoader from 'components/common/PageLoader/PageLoader';
|
||||||
} from '../../../../components/Topics/Details/Messages/Messages';
|
|
||||||
import PageLoader from '../../../../components/common/PageLoader/PageLoader';
|
|
||||||
|
|
||||||
describe('Messages component', () => {
|
describe('Messages component', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue