Skip to content

Commit

Permalink
build & test pass all sources pass eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Sep 8, 2023
1 parent 51923ac commit af9039b
Show file tree
Hide file tree
Showing 38 changed files with 465 additions and 623 deletions.
68 changes: 34 additions & 34 deletions fixtures/browser/package-lock.json

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

2 changes: 1 addition & 1 deletion fixtures/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"dependencies": {
"@babel/core": "7.22.15",
"@babel/core": "7.22.17",
"@babel/helper-replace-supers": "7.22.9",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.22.15",
Expand Down
80 changes: 40 additions & 40 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"test:package": "node fixtures/packaging/build-all.js"
},
"devDependencies": {
"@babel/core": "^7.22.15",
"@babel/core": "^7.22.17",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
"@babel/preset-env": "7.22.15",
Expand Down
9 changes: 6 additions & 3 deletions packages/inferno-animation/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { isFunction, warning } from 'inferno-shared';
declare global {
// Setting `window.__DEBUG_ANIMATIONS__ = true;` disables animation timeouts
// allowing breakpoints in animations for debugging.
var __INFERNO_ANIMATION_DEBUG__: Boolean;
// eslint-disable-next-line
var __INFERNO_ANIMATION_DEBUG__: boolean;
}

export interface Dimensions {
Expand Down Expand Up @@ -230,7 +231,7 @@ export const transitionEndName: string = (function () {
}
})();

function setAnimationTimeout(onTransitionEnd, rootNode, maxDuration) {
function setAnimationTimeout(onTransitionEnd, rootNode, maxDuration): void {
if (rootNode.nodeName === 'IMG' && !rootNode.complete) {
// Image animations should wait for loaded until the timeout is started, otherwise animation will be cut short
// due to loading delay
Expand Down Expand Up @@ -313,7 +314,9 @@ export function registerTransitionListener(
// WARNING: If the callback isn't called, the DOM nodes won't be removed
if (process.env.NODE_ENV !== 'production') {
if (window.__INFERNO_ANIMATION_DEBUG__) {
warning("You are in animation debugging mode and fallback timeouts aren't set. DOM nodes could be left behind.");
warning(
"You are in animation debugging mode and fallback timeouts aren't set. DOM nodes could be left behind.",
);
} else {
setAnimationTimeout(onTransitionEnd, rootNode, maxDuration);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/inferno-compat/__tests__/ReactComponent.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('ReactComponent', function () {

// other
it('should pass context to children when not owner', function () {
class Parent extends React.Component{
class Parent extends React.Component {
render() {
return (
<Child>
Expand Down
Loading

0 comments on commit af9039b

Please sign in to comment.