Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 25, 2020
1 parent fea59fe commit eb98cd4
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const base = require('@umijs/fabric/dist/eslint');

module.exports = {
...base,
extends: [require.resolve('@umijs/fabric/dist/eslint')],
rules: {
...base.rules,
'default-case': 0,
'react/sort-comp': 0,
'react/no-array-index-key': 0,
Expand Down
1 change: 0 additions & 1 deletion examples/extra.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control */
import React from 'react';
import Tabs, { TabPane } from '../src';
import '../assets/index.less';
Expand Down
1 change: 0 additions & 1 deletion examples/mix.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control */
import React from 'react';
import Tabs, { TabPane } from '../src';
import '../assets/index.less';
Expand Down
1 change: 0 additions & 1 deletion examples/overflow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control */
import React from 'react';
import Tabs, { TabPane } from '../src';
import '../assets/index.less';
Expand Down
1 change: 0 additions & 1 deletion examples/position.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control */
import React from 'react';
import Tabs, { TabPane } from '../src';
import '../assets/index.less';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/jest": "^25.2.3",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@umijs/fabric": "^2.0.4",
"@umijs/fabric": "^2.3.1",
"coveralls": "^3.0.6",
"cross-env": "^7.0.2",
"enzyme": "^3.7.0",
Expand All @@ -68,7 +68,7 @@
"react-sticky": "^6.0.3",
"react-test-renderer": "^16.0.0",
"sortablejs": "^1.7.0",
"typescript": "^3.9.2"
"typescript": "^4.0.0"
},
"dependencies": {
"@babel/runtime": "^7.11.2",
Expand Down
2 changes: 1 addition & 1 deletion src/TabNavList/OperationNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function OperationNode(

const overlayClassName = classNames({
[`${dropdownPrefix}-rtl`]: rtl
})
});

const moreNode: React.ReactElement = mobile ? null : (
<Dropdown
Expand Down
1 change: 0 additions & 1 deletion src/TabNavList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ function TabNavList(props: TabNavListProps, ref: React.Ref<HTMLDivElement>) {
pingBottom = -transformTop + wrapperHeight < wrapperScrollHeight;
}

/* eslint-disable jsx-a11y/interactive-supports-focus */
return (
<div
ref={ref}
Expand Down
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "esnext",
"moduleResolution": "node",
"baseUrl": "./",
"jsx": "preserve",
"declaration": true,
"skipLibCheck": true,
"esModuleInterop": true,
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-tabs": ["src/index.tsx"]
}
}
}

1 comment on commit eb98cd4

@vercel
Copy link

@vercel vercel bot commented on eb98cd4 Dec 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.