Skip to content

Commit

Permalink
updated swc plugin, eslint and lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Nov 25, 2023
1 parent 8bc661e commit 30bd8f1
Show file tree
Hide file tree
Showing 8 changed files with 2,015 additions and 3,381 deletions.
5,364 changes: 1,994 additions & 3,370 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@swc/core": "^1.3.96",
"@swc/core": "^1.3.99",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.8",
"@types/jsdom": "^21.1.5",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@types/jest": "^29.5.10",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"babel-plugin-inferno": "6.7.0",
"cli-table": "^0.3.11",
"concat-stream-es6": "0.0.1",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"d3-scale-chromatic": "^3.0.0",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-config-standard-with-typescript": "^40.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.1",
Expand All @@ -121,7 +121,7 @@
"jest-jasmine2": "^29.7.0",
"jest-silent-reporter": "^0.5.0",
"jsdom": "^22.1.0",
"lerna": "^7",
"lerna": "^8",
"lint-staged": "^15.1.0",
"minimist": "^1.2.8",
"mobx": "^6.11.0",
Expand All @@ -130,11 +130,11 @@
"pre-commit": "^1.2.2",
"prettier": "^3.1.0",
"rimraf": "^5",
"rollup": "^4.4.1",
"rollup": "^4.5.2",
"swc": "^1.0.11",
"swc-loader": "^0.2.3",
"swc-plugin-inferno": "^0.0.13",
"swc-plugin-inferno": "^0.0.14",
"ts-plugin-inferno": "^6.0.2",
"typescript": "^5.2.2"
"typescript": "^5.3.2"
}
}
2 changes: 2 additions & 0 deletions packages/inferno-mobx/src/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ function mixinLifecycleEvents(target): void {
patch(target, 'componentWillUnmount', false);
patch(target, 'componentDidUpdate', false);
if (!target.shouldComponentUpdate) {
// eslint-disable-next-line @typescript-eslint/unbound-method
target.shouldComponentUpdate = reactiveMixin.shouldComponentUpdate;
}
}
Expand Down Expand Up @@ -421,6 +422,7 @@ function createStoreInjector(grabStoresFn: Function, component, injectNames?) {
component,
newProps,
null,
// eslint-disable-next-line @typescript-eslint/unbound-method
isStateless(component) ? null : this.storeRef,
);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/inferno-redux/src/components/connectAdvanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export function connectAdvanced(
if (!this.selector.shouldComponentUpdate) {
this.notifyNestedSubs!();
} else {
// eslint-disable-next-line @typescript-eslint/unbound-method
this.componentDidUpdate = this.notifyNestedSubsOnComponentDidUpdate;
this.setState({});
}
Expand Down Expand Up @@ -372,6 +373,7 @@ export function connectAdvanced(
WrappedComponent,
this.addExtraProps(selector.props),
null,
// eslint-disable-next-line @typescript-eslint/unbound-method
withRef ? this.setWrappedInstance : null,
),
);
Expand Down
1 change: 1 addition & 0 deletions packages/inferno-redux/src/utils/shallowEqual.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/unbound-method
const hasOwn = Object.prototype.hasOwnProperty;

export const shallowEqual = (a: any, b: any): boolean => {
Expand Down
3 changes: 3 additions & 0 deletions packages/inferno-server/src/renderToString.queuestream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class RenderQueueStream extends Readable {
}

public _read(): void {
// eslint-disable-next-line @typescript-eslint/unbound-method
setTimeout(this.pushQueue, 0);
}

Expand Down Expand Up @@ -83,6 +84,7 @@ export class RenderQueueStream extends Readable {
chunk.then((index) => {
self.collector.splice(0, 1, ...self.promises[index]);
self.promises[index] = null;
// eslint-disable-next-line @typescript-eslint/unbound-method
setTimeout(self.pushQueue, 0);
});
this.collector[0] = null;
Expand Down Expand Up @@ -159,6 +161,7 @@ export class RenderQueueStream extends Readable {
);
}

// eslint-disable-next-line @typescript-eslint/unbound-method
setTimeout(this.pushQueue, 0);
return promisePosition;
}),
Expand Down
1 change: 1 addition & 0 deletions packages/inferno-test-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export function scryRenderedDOMElementsWithClass(
if (
!isString(domClassName) &&
!isNullOrUndef(instance.dom) &&
// eslint-disable-next-line @typescript-eslint/unbound-method
isFunction(instance.dom.getAttribute)
) {
// SVG || null, probably
Expand Down
1 change: 1 addition & 0 deletions packages/inferno/src/DOM/mounting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export function mountClassComponent(

// If we have a componentDidAppear on this component, we shouldn't allow children to animate so we're passing an dummy animations queue
let childAnimations = animations;
// eslint-disable-next-line @typescript-eslint/unbound-method
if (isFunction(instance.componentDidAppear)) {
childAnimations = new AnimationQueues();
}
Expand Down

0 comments on commit 30bd8f1

Please sign in to comment.