Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit f8ac929

Browse files
feat(react): upgrade to react-scripts@2 (#300)
- Update to `react-scripts@2` - Update React version - Update React DOM version - Add `browserslist` for `react-scripts@2` - Downgrade ESLint to 5.6.0 as a requirement to `react-scripts@2`
1 parent b3dc47f commit f8ac929

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

scripts/__snapshots__/e2e-templates.test.js.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,6 +3688,12 @@ exports[`Templates React InstantSearch File content: package.json 1`] = `
36883688
\\"lint\\": \\"eslint .\\",
36893689
\\"lint:fix\\": \\"npm run lint -- --fix\\"
36903690
},
3691+
\\"browserslist\\": [
3692+
\\">0.2%\\",
3693+
\\"not dead\\",
3694+
\\"not ie <= 11\\",
3695+
\\"not op_mini all\\"
3696+
],
36913697
\\"partialDependencies\\": {
36923698
\\"react-instantsearch-dom\\": \\"1.0.0\\"
36933699
}

src/templates/React InstantSearch/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@
1010
},
1111
"dependencies": {
1212
"algoliasearch": "3.30.0",
13-
"react": "16.5.2",
14-
"react-dom": "16.5.2",
13+
"react": "16.6.0",
14+
"react-dom": "16.6.0",
1515
"react-instantsearch-dom": "{{libraryVersion}}",
16-
"react-scripts": "1.1.5"
16+
"react-scripts": "2.0.5"
1717
},
1818
"devDependencies": {
19-
"eslint": "5.7.0",
19+
"eslint": "5.6.0",
2020
"eslint-config-algolia": "13.2.3",
2121
"eslint-config-prettier": "3.1.0",
2222
"eslint-plugin-import": "2.14.0",
2323
"eslint-plugin-prettier": "3.0.0",
2424
"eslint-plugin-react": "7.11.1",
2525
"prettier": "1.14.3",
2626
"prop-types": "15.6.2"
27-
}
27+
},
28+
"browserslist": [
29+
">0.2%",
30+
"not dead",
31+
"not ie <= 11",
32+
"not op_mini all"
33+
]
2834
}

0 commit comments

Comments
 (0)