Skip to content

Commit

Permalink
chore: Upgrade dependencies (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
taion authored Mar 19, 2019
2 parents 9d79082 + bbbf7a8 commit 8baa090
Show file tree
Hide file tree
Showing 5 changed files with 3,861 additions and 2,282 deletions.
12 changes: 6 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"presets": [
["env", {
"loose": true
}],
"stage-1",
"react"
["@4c", {
"targets": {}
}]
],
"plugins": ["add-module-exports"]
"plugins": [
"add-module-exports"
]
}
12 changes: 11 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "4catalyzer-react"
"extends": [
"4catalyzer-react",
"prettier",
"prettier/react"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
}
}
70 changes: 44 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,28 @@
],
"main": "lib/index.js",
"scripts": {
"build": "rimraf lib && babel src -d lib",
"lint": "eslint src test *.js",
"build": "BABEL_ENV=production babel src -d lib --delete-dir-on-start",
"lint": "eslint src test",
"prepublish": "npm run build",
"testonly": "jest --runInBand --verbose",
"test": "npm run lint && npm run testonly"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"prettier": {
"printWidth": 79,
"singleQuote": true,
"trailingComma": "all"
},
"jest": {
"setupFiles": [
"<rootDir>/test/setup.js"
Expand All @@ -34,35 +50,37 @@
},
"homepage": "https://github.com/4Catalyzer/found-scroll#readme",
"dependencies": {
"farce": "^0.2.1",
"prop-types": "^15.6.0",
"scroll-behavior": "^0.9.3"
"farce": "^0.2.7",
"prop-types": "^15.7.2",
"scroll-behavior": "^0.9.10"
},
"peerDependencies": {
"found": ">=0.1.0",
"react": "^0.14.9 || >=15.3.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^23.6.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.6.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"eslint": "^4.7.2",
"eslint-config-4catalyzer-react": "^0.3.2",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.4.0",
"found": "^0.3.4",
"jest": "^23.6.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"rimraf": "^2.6.2"
"@4c/babel-preset": "^4.1.5",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.5.0",
"babel-plugin-add-module-exports": "^1.0.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"eslint": "^5.15.3",
"eslint-config-4catalyzer-react": "^0.9.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.4",
"found": "^0.3.21",
"husky": "^1.3.1",
"jest": "^24.5.0",
"lint-staged": "^8.1.5",
"prettier": "^1.16.4",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"react-test-renderer": "^16.8.4"
}
}
4 changes: 3 additions & 1 deletion src/ScrollManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class ScrollManager extends React.Component {

// Hack to allow access to ScrollBehavior internals (e.g. stateStorage).
return shouldUpdateScroll.call(
this.scrollBehavior, prevRenderArgs, renderArgs,
this.scrollBehavior,
prevRenderArgs,
renderArgs,
);
};

Expand Down
Loading

0 comments on commit 8baa090

Please sign in to comment.