Skip to content

Commit

Permalink
chore: add object-currry-spacing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shijiatongxue committed Feb 22, 2022
1 parent 79e8304 commit 831671b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'jsx-a11y/click-events-have-key-events': ['warn'],
'jsx-a11y/no-noninteractive-element-interactions': ['warn'],
'jsx-a11y/no-autofocus': ['warn'],
'object-curly-spacing': ['error', 'always'],
},
globals: {
"sinon": "readonly",
Expand Down Expand Up @@ -77,6 +78,7 @@ module.exports = {
'jsx-a11y/click-events-have-key-events': ['warn'],
'jsx-a11y/no-noninteractive-element-interactions': ['warn'],
'jsx-a11y/no-autofocus': ['warn'],
'object-curly-spacing': ['error', 'always'],
}
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/semi-ui/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
cb();
}
};
document.addEventListener('click', this.clickOutsideHandler, {capture: true});
document.addEventListener('click', this.clickOutsideHandler, { capture: true });
},
unregisterClickOutsideHandler: () => {
if (this.clickOutsideHandler) {
document.removeEventListener('click', this.clickOutsideHandler, {capture: true});
document.removeEventListener('click', this.clickOutsideHandler, { capture: true });
this.clickOutsideHandler = null;
}
},
Expand Down

0 comments on commit 831671b

Please sign in to comment.