Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit afaef56

Browse files
Zubair Ahmedvinaypuppal
authored andcommitted
upgrade react and next.js (#14)
1 parent 113f0f7 commit afaef56

File tree

2 files changed

+1071
-590
lines changed

2 files changed

+1071
-590
lines changed

package.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "xo",
8-
"lint":
9-
"prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix",
8+
"lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix",
109
"precommit": "lint-staged",
1110
"analyze": "cross-env ANALYZE=1 next build",
1211
"dev": "cross-env NODE_ENV=development nodemon server.js -w server.js",
@@ -17,15 +16,24 @@
1716
},
1817
"xo": {
1918
"parser": "babel-eslint",
20-
"extends": ["prettier", "prettier/react", "plugin:react/recommended"],
21-
"env": ["browser", "node"],
19+
"extends": [
20+
"prettier",
21+
"prettier/react",
22+
"plugin:react/recommended"
23+
],
24+
"env": [
25+
"browser",
26+
"node"
27+
],
2228
"rules": {
2329
"linebreak-style": 0,
2430
"react/display-name": 0,
2531
"react/prop-types": 0
2632
},
2733
"space:": 2,
28-
"ignores": ["next.config.js"]
34+
"ignores": [
35+
"next.config.js"
36+
]
2937
},
3038
"lint-staged": {
3139
"*.js": [
@@ -48,14 +56,14 @@
4856
"isomorphic-unfetch": "^2.0.0",
4957
"js-cookie": "^2.1.4",
5058
"moment": "^2.19.1",
51-
"next": "2.4.7",
59+
"next": "^4.1.0",
5260
"nprogress": "^0.2.0",
5361
"preact": "^8.2.1",
5462
"preact-compat": "^3.16.0",
5563
"prop-types": "^15.5.10",
56-
"react": "^15.6.1",
64+
"react": "^16.0.0",
5765
"react-count-down": "^1.1.0",
58-
"react-dom": "^15.6.1",
66+
"react-dom": "^16.0.0",
5967
"react-ga": "^2.2.0",
6068
"react-headroom": "^2.1.6",
6169
"react-icons": "^2.2.5",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy