Skip to content

Commit

Permalink
chore: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Sep 17, 2023
1 parent 2c1a6c0 commit bc94e07
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
extends: [
'@gravity-ui/eslint-config',
process.env.npm && '@gravity-ui/eslint-config/prettier',
process.env.npm_command && '@gravity-ui/eslint-config/prettier',
].filter(Boolean),
root: true,
rules: {
Expand Down
4 changes: 0 additions & 4 deletions .eslintrc.publish.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/components/Control/Control.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {forwardRef, useCallback, useImperativeHandle, useRef} from 'react';

import {Button, ButtonProps, Popup} from '@gravity-ui/uikit';
import block from 'bem-cn-lite';
import React, {forwardRef, useCallback, useImperativeHandle, useRef} from 'react';

import {PopperPosition, usePopupState} from '../../hooks';
import {ControlSizes} from '../../models';
Expand Down
6 changes: 4 additions & 2 deletions src/components/Controls/single-controls/LangControl.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import React, {useCallback, useContext, useMemo, useRef} from 'react';

import {Globe} from '@gravity-ui/icons';
import {List, Popover} from '@gravity-ui/uikit';
import block from 'bem-cn-lite';
import allLangs from 'langs';
import React, {useCallback, useContext, useMemo, useRef} from 'react';

import {usePopupState, useTranslation} from '../../../hooks';
import {Lang} from '../../../models';
import {Control} from '../../Control';
import '../Controls.scss';
import {ControlsLayoutContext} from '../ControlsLayout';

import {getPopupPosition} from './utils';

import '../Controls.scss';

const ICONS: Record<string, string> = {
en: '🇬🇧',
ru: '🇷🇺',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, {ReactElement, useCallback, useContext, useRef, useState} from 'react';

import {Gear} from '@gravity-ui/icons';
import {Button, List, Popover, Switch} from '@gravity-ui/uikit';
import cn from 'bem-cn-lite';
import React, {ReactElement, useCallback, useContext, useRef, useState} from 'react';

import {useTranslation} from '../../../../hooks';
import {TextSizes, Theme} from '../../../../models';
Expand Down
3 changes: 2 additions & 1 deletion src/components/Paginator/Paginator.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, {ReactNode} from 'react';

import {ArrowLeft, ArrowRight} from '@gravity-ui/icons';
import {Button} from '@gravity-ui/uikit';
import block from 'bem-cn-lite';
import React, {ReactNode} from 'react';

import {useTranslation} from '../../hooks';

Expand Down
3 changes: 2 additions & 1 deletion src/components/TocItem/TocItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import block from 'bem-cn-lite';
import React from 'react';

import block from 'bem-cn-lite';

import {TocItem as ITocItem} from '../../models';
import {isExternalHref} from '../../utils';
import {ToggleArrow} from '../ToggleArrow';
Expand Down

0 comments on commit bc94e07

Please sign in to comment.