Skip to content

Commit

Permalink
eslint conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Kozhevnikov committed Apr 14, 2022
1 parent 70cfb3c commit 2d7bccf
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 36 deletions.
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"plugins": ["@typescript-eslint", "react", "unused-imports"],
"env": {
"browser": true,
"node": true,
Expand All @@ -14,10 +14,14 @@
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "warn",
"react/prop-types": "off",
"@typescript-eslint/no-empty-function": "off",
"react/display-name": "off",
"@typescript-eslint/no-var-requires": "off"
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off"
},
"settings": {
"react": {
Expand Down
46 changes: 46 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-unused-imports": "^2.0.0",
"html-webpack-plugin": "^5.5.0",
"jest": "^27.5.1",
"prettier": "^2.6.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/tabtab/src/DragTab.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @flow
import React, { FC, forwardRef, memo, MutableRefObject } from 'react';
import React, { FC, forwardRef, memo } from 'react';
import { useSortable } from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
import Tab from './Tab';

interface Props {
id: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/tabtab/src/DragTabList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC, memo, useCallback, useEffect, useMemo, useState } from 'react';
import React, { FC, memo, useCallback, useEffect, useState } from 'react';
import { DndContext, useSensor, useSensors, MouseSensor, DndContextProps } from '@dnd-kit/core';
import { arrayMove, SortableContext } from '@dnd-kit/sortable';
import { SortableContext } from '@dnd-kit/sortable';
import DragTab from './DragTab';
import { TabList } from '.';
import { TabProps } from './Tab';
Expand Down
2 changes: 0 additions & 2 deletions packages/tabtab/src/TabModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import * as React from 'react';

import SortMethod from './SortMethod';
import ReactModal from 'react-modal';
import styled from 'styled-components';

Expand Down
1 change: 0 additions & 1 deletion packages/tabtab/src/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Panel } from '.';
import { PanelProps } from './Panel';
import { TabElementProps } from './Tab';
import { TabListElementProps } from './TabListElement';
Expand Down
27 changes: 0 additions & 27 deletions packages/tabtab/src/Test.tsx

This file was deleted.

0 comments on commit 2d7bccf

Please sign in to comment.