apps/web: disable eslint rule react/forbid-component-props

This commit is contained in:
vchikalkin 2023-11-21 19:26:07 +03:00
parent 43b505c16d
commit 551e865401
5 changed files with 1 additions and 4 deletions

View File

@ -7,6 +7,7 @@ module.exports = createConfig('next-typescript', {
}, },
rules: { rules: {
'import/no-duplicates': 'off', 'import/no-duplicates': 'off',
'react/forbid-component-props': 'off',
}, },
ignorePatterns: ['*.config.js', '.eslintrc.js'], ignorePatterns: ['*.config.js', '.eslintrc.js'],
}); });

View File

@ -1,4 +1,3 @@
/* eslint-disable react/forbid-component-props */
import * as apiIUS from '@/api/ius/query'; import * as apiIUS from '@/api/ius/query';
import { Conditions } from '@/components/Conditions'; import { Conditions } from '@/components/Conditions';
import type { PageProps } from '@/types/page'; import type { PageProps } from '@/types/page';

View File

@ -1,4 +1,3 @@
/* eslint-disable react/forbid-component-props */
import { Background } from 'ui'; import { Background } from 'ui';
type Props = { type Props = {

View File

@ -1,4 +1,3 @@
/* eslint-disable react/forbid-component-props */
import Link from 'next/link'; import Link from 'next/link';
import { Heading } from 'ui'; import { Heading } from 'ui';

View File

@ -1,4 +1,3 @@
/* eslint-disable react/forbid-component-props */
'use client'; 'use client';
import { Buttons } from './Buttons'; import { Buttons } from './Buttons';
import { FormContext, FormContextProvider } from './context/form-context'; import { FormContext, FormContextProvider } from './context/form-context';