Skip to content

Commit

Permalink
chore: update react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
theandersonn committed May 12, 2022
1 parent 62ef5b9 commit 7a9f0fd
Show file tree
Hide file tree
Showing 4 changed files with 4,150 additions and 7,119 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react"]
}
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
],
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
"jsx": true,
"modules": true
},
"ecmaVersion": 12,
"sourceType": "module"
Expand All @@ -29,6 +30,7 @@
"react-hooks"
],
"rules": {
"react/function-component-definition": 0,
"react/react-in-jsx-scope": "off",
"no-unused-vars": "warn",
"import/prefer-default-export": "off",
Expand Down
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
"!<rootDir>/node_modules/"
]
},
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-github-corner": "^2.5.0",
"react-icons": "^4.3.1",
"react-scripts": "4.0.3",
"styled-components": "^5.3.5",
"styled-media-query": "^2.1.2",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand All @@ -43,14 +29,30 @@
"last 1 safari version"
]
},
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^14.2.0",
"prop-types": "^15.8.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-github-corner": "^2.5.0",
"react-icons": "^4.3.1",
"react-scripts": "5.0.1",
"styled-components": "^5.3.5",
"styled-media-query": "^2.1.2",
"web-vitals": "^2.1.4"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^7.24.0",
"eslint-config-airbnb": "^18.2.1",
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.5.4",
"@babel/preset-react": "^7.16.7",
"eslint": "^8.15.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"jest-styled-components": "^7.0.8",
Expand Down
Loading

0 comments on commit 7a9f0fd

Please sign in to comment.