Skip to content

Commit

Permalink
feat: update @babel/preset-react config, set runtime to automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
uniquemo committed Nov 2, 2020
1 parent 287d4a0 commit d7c8a62
Show file tree
Hide file tree
Showing 4 changed files with 1,346 additions and 1,491 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
],
"@babel/preset-typescript"
],
"plugins": [
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ module.exports = {
'@typescript-eslint/no-this-alias': 'off',
'react/prop-types': 'off',
'react/display-name': 'off',
// 'react/jsx-uses-react': 'off',
// 'react/react-in-jsx-scope': 'off'
},
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"@types/react": "^16.9.55",
"@types/react-dom": "^16.9.9",
"@types/react-router-dom": "^5.1.4",
"@types/webpack": "^4.41.24",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"babel-loader": "^8.1.0",
Expand Down

0 comments on commit d7c8a62

Please sign in to comment.