eslint: warn some rules

This commit is contained in:
vchikalkin 2023-03-13 11:27:09 +03:00
parent 2defb4f79b
commit b6f22d7940
31 changed files with 10 additions and 31 deletions

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../types';
import * as CRMTypes from '@/graphql/crm.types';
import dayjs from 'dayjs';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../../types';
import { getUser } from '@/api/user/query';
import type { ElementsTypes } from '@/Components/Calculation/config/map/values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../../types';
import helper from '../lib/helper';
import * as CRMTypes from '@/graphql/crm.types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';
import { reaction } from 'mobx';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { radioCalcType, radioGraphType, selectSeasonType } from '@/config/default-options';
import * as CRMTypes from '@/graphql/crm.types';
import { SEASON_TYPES } from '@/process/payments/lib/seasons-constants';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { Elements } from '@/Components/Calculation/config/map/values';
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../types';
import ValuesSchema from '@/config/schema/values';
import * as CRMTypes from '@/graphql/crm.types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { calculateFinGAP } from '@/api/core/query';
import type { RequestFinGAP } from '@/api/core/types';
import type { Risk } from '@/Components/Calculation/Form/Insurance/FinGAPTable/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { GetQuoteInputData, GetQuoteProcessData } from '../load-kp/types';
import helper from './lib/helper';
import initializeApollo from '@/apollo/client';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';
import type { CalculationValues } from '@/stores/calculation/values/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../types';
import helper from './lib/helper';
import { createValidationSchema } from './validation';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../types';
import ValuesSchema from '@/config/schema/values';
import { MAX_MASS } from '@/constants/values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { User } from '@/api/user/types';
import * as CRMTypes from '@/graphql/crm.types';
import type { ApolloClient } from '@apollo/client';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../types';
import { createValidationSchema } from './validation';
import type { Elements } from '@/Components/Calculation/config/map/values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { GetQuoteInputData, GetQuoteProcessData } from '../load-kp/types';
import initializeApollo from '@/apollo/client';
import defaultValues from '@/config/default-values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';
import { reaction } from 'mobx';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { createValidationSchema } from '../validation';
import type { Elements } from '@/Components/Calculation/config/map/values';
import type { ProcessContext } from '@/process/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../types';
import ValuesSchema from '@/config/schema/values';
import * as CRMTypes from '@/graphql/crm.types';

View File

@ -1,5 +1,5 @@
/* eslint-disable canonical/sort-keys */
/* eslint-disable @typescript-eslint/naming-convention */
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';
import dayjs from 'dayjs';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { VAT } from '@/constants/values';
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import * as CRMTypes from '@/graphql/crm.types';
import type { ProcessContext } from '@/process/types';
import dayjs from 'dayjs';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { createValidationSchema } from '../validation';
import type { Elements } from '@/Components/Calculation/config/map/values';
import type { ProcessContext } from '@/process/types';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../types';
import ValuesSchema from '@/config/schema/values';
import { VAT } from '@/constants/values';

View File

@ -1,5 +1,5 @@
/* eslint-disable no-negated-condition */
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../types';
import * as CRMTypes from '@/graphql/crm.types';
import { reaction } from 'mobx';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import initializeApollo from '@/apollo/client';
import type * as CRMTypes from '@/graphql/crm.types';
import { gql } from '@apollo/client';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { AgentsFields, AgentsRewardConditionsFields, AgentsSumFields } from './types';
import * as CRMTypes from '@/graphql/crm.types';
import type RootStore from '@/stores/root';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable sonarjs/no-identical-functions */
import * as createReactions from '../lib/create-reactions';
import * as fillAgentsFromLead from '../lib/fill-agents-from-lead';

View File

@ -1,5 +1,3 @@
/* eslint-disable zod/require-strict */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable complexity */
import type { ValidationContext } from '../types';
import type { Elements } from '@/Components/Calculation/config/map/values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ProcessContext } from '../types';
import { createValidationSchema } from './validation';
import type { Elements } from '@/Components/Calculation/config/map/values';

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { ValidationContext } from '../types';
import ValuesSchema from '@/config/schema/values';
import * as CRMTypes from '@/graphql/crm.types';

View File

@ -55,6 +55,7 @@ module.exports = {
'import/no-unassigned-import': 'off',
'import/no-named-as-default-member': 'warn',
'react/jsx-sort-props': 'off',
'@typescript-eslint/naming-convention': 'warn',
// Unicorn
'unicorn/no-array-for-each': 'off',
@ -130,6 +131,13 @@ module.exports = {
requireReturnForObjectLiteral: false,
},
],
// Sonar
'sonarjs/no-duplicate-string': 'warn',
// Zod
'zod/require-strict': 'off',
// Turbo
'turbo/no-undeclared-env-vars': 'warn',
},