diff --git a/.lintstagedrc.js b/.lintstagedrc.js index e5e68be4..44e90f0f 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,3 +1,3 @@ module.exports = { - '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'], + '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write ./src/*'], }; diff --git a/src/features/shared/atoms/inputForm/inputFile/InputFile.tsx b/src/features/shared/atoms/inputForm/inputFile/InputFile.tsx index a96b4de7..7b495bfb 100644 --- a/src/features/shared/atoms/inputForm/inputFile/InputFile.tsx +++ b/src/features/shared/atoms/inputForm/inputFile/InputFile.tsx @@ -29,6 +29,7 @@ export const InputFile = >({ multiple, }: Props) => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-expect-error TS2536: Type Path cannot be used to index type Partial> const error = errors[name]; const handleChange = (event: React.ChangeEvent) => { diff --git a/src/features/shared/atoms/inputForm/inputSelect/InputSelect.tsx b/src/features/shared/atoms/inputForm/inputSelect/InputSelect.tsx index 3863f078..cb0e3cf5 100644 --- a/src/features/shared/atoms/inputForm/inputSelect/InputSelect.tsx +++ b/src/features/shared/atoms/inputForm/inputSelect/InputSelect.tsx @@ -25,6 +25,7 @@ export const InputSelect = >({ options, }: Props) => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-expect-error TS2536: Type Path cannot be used to index type Partial> const error = errors[name]; const renderOptions = () => { diff --git a/src/features/shared/atoms/inputForm/inputSimple/InputSimple.tsx b/src/features/shared/atoms/inputForm/inputSimple/InputSimple.tsx index 7a688b41..78680a85 100644 --- a/src/features/shared/atoms/inputForm/inputSimple/InputSimple.tsx +++ b/src/features/shared/atoms/inputForm/inputSimple/InputSimple.tsx @@ -33,6 +33,7 @@ export const InputSimple = >({ value, }: Props) => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-expect-error TS2536: Type Path cannot be used to index type Partial> const error = errors[name]; const handleChange = (event: ChangeEvent) => {