Skip to content

Commit

Permalink
style: apply prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 23, 2024
1 parent 308af7b commit a8604df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rules/noUseExtendNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import isGetSetProp from 'is-get-set-prop';
import isJsType from 'is-js-type';
import isObjProp from 'is-obj-prop';
import isProtoPropOriginal from 'is-proto-prop';
import isProtoPropOriginal from 'is-proto-prop';
import { createRule } from '../utilities';

const isProtoProp = (jsType: string, propertyName: string) => {
const isProtoProperty = (jsType: string, propertyName: string) => {
if (jsType === 'Object' && propertyName === 'groupBy') {
return true;
}
Expand Down Expand Up @@ -112,7 +112,7 @@ const isUnkownGettSetterOrJsTypeExpressed = (
return (
isExpression &&
!isGetSetProp(jsType, propertyName) &&
!isProtoProp(jsType, propertyName) &&
!isProtoProperty(jsType, propertyName) &&
!isObjProp(jsType, propertyName)
);
};
Expand Down Expand Up @@ -143,7 +143,7 @@ const isInvalid = (jsType, propertyName, usageType) => {

const unknownjsTypeCalledAsFunction =
isFunctionCall &&
!isProtoProp(jsType, propertyName) &&
!isProtoProperty(jsType, propertyName) &&
!isObjProp(jsType, propertyName);

return (
Expand Down

0 comments on commit a8604df

Please sign in to comment.