Skip to content

Commit

Permalink
[core] Fix @typescript-eslint/default-param-last issues (#34846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Oct 28, 2022
1 parent 95f247e commit 1fb3c8a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/mui-base/src/ModalUnstyled/ModalManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function ariaHiddenSiblings(
container: Element,
mountElement: Element,
currentElement: Element,
elementsToExclude: readonly Element[] = [],
elementsToExclude: readonly Element[],
show: boolean,
): void {
const blacklist = [mountElement, currentElement, ...elementsToExclude];
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/utils/appendOwnerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function appendOwnerState<
OwnerState,
>(
elementType: ElementType,
otherProps: OtherProps = {} as OtherProps,
otherProps: OtherProps,
ownerState: OwnerState,
): AppendOwnerStateReturnType<ElementType, OtherProps, OwnerState> {
if (isHostComponent(elementType)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-codemod/src/v5.0.0/jss-to-styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default function transformer(file, api, options) {
* @param {string[]} rootKeys
* @param {import('jscodeshift').ObjectExpression | import('jscodeshift').ArrowFunctionExpression | import('jscodeshift').FunctionDeclaration} prevStyleArg
*/
function convertToStyledArg(functionExpression, rootKeys = [], prevStyleArg) {
function convertToStyledArg(functionExpression, rootKeys, prevStyleArg) {
const objectExpression = getObjectExpression(functionExpression);

if (objectExpression) {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material-next/src/Button/TouchRipple.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const TouchRipple = React.forwardRef(function TouchRipple(inProps, ref) {
);

const start = React.useCallback(
(event = {}, options = {}, cb) => {
(event = {}, options = {}, cb = () => {}) => {
const {
pulsate = false,
center = centerProp || options.pulsate,
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/ButtonBase/TouchRipple.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const TouchRipple = React.forwardRef(function TouchRipple(inProps, ref) {
);

const start = React.useCallback(
(event = {}, options = {}, cb) => {
(event = {}, options = {}, cb = () => {}) => {
const {
pulsate = false,
center = centerProp || options.pulsate,
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-to-proptypes/src/injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function flattenTsAsExpression(node: object | null | undefined) {

function plugin(
propTypes: t.Program,
options: InjectOptions = {},
options: InjectOptions,
mapOfPropTypes: Map<string, string>,
): babel.PluginObj {
const {
Expand Down

0 comments on commit 1fb3c8a

Please sign in to comment.