Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Jan 19, 2024
1 parent 4b8dcd1 commit 782cb51
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
version: 26,
},
react: {
version: 'detect',
version: '17',
},
},
rules: {
Expand Down
1 change: 1 addition & 0 deletions packages/s2-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"devDependencies": {
"@ant-design/icons": "^4.7.0",
"@antv/g-canvas": "^0.5.12",
"@antv/s2": "workspace:*",
"@antv/s2-shared": "workspace:*",
"@testing-library/react": "^12.1.4",
Expand Down
1 change: 1 addition & 0 deletions packages/s2-react/src/components/advanced-sort/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export const AdvancedSort: React.FC<AdvancedSortProps> = ({
onClick={() => {
deleteRule(item);
}}
rev
/>
</Form.Item>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function DragCopyMask({ onCopyFinished }: DragCopyProps) {
}

const rect = (event.target as HTMLElement).getBoundingClientRect();
const { top, left } = get(event, 'target.style', {});
const { top, left } = get(event, 'target.style', {} as any);
const allCelles = spreadsheet.interaction.getPanelGroupAllDataCells();
const targetCell = allCelles.find((v) =>
isInCell({ y: parseFloat(top), x: parseFloat(left) }, v),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const SwitcherContent: React.FC<SwitcherContentProps> = React.memo(
<footer className={getSwitcherClassName(CLASS_NAME_PREFIX, 'footer')}>
<Button
type={'text'}
icon={<ReloadOutlined />}
icon={<ReloadOutlined rev />}
className={getSwitcherClassName(
CLASS_NAME_PREFIX,
'footer',
Expand Down
18 changes: 3 additions & 15 deletions pnpm-lock.yaml

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

0 comments on commit 782cb51

Please sign in to comment.