Skip to content

Commit

Permalink
updated hooks plugin and added aliases to auto resolve common libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Absatz committed Mar 18, 2019
1 parent eb522f4 commit 354413a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ module.exports = {
'react/no-string-refs': 'warn',
'react/no-unescaped-entities': 'warn',
'react/no-unknown-property': 'warn',
'react/prop-types': 'warn',
// 'react/prop-types': 'warn',
'react/no-typos': 'error',
'react/react-in-jsx-scope': 'error',
'react/require-render-return': 'error',
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bluealba/eslint-config-react-app",
"version": "3.1.1",
"version": "3.1.3",
"description": "ESLint configuration used by Create React App",
"repository": "facebook/create-react-app",
"license": "MIT",
Expand All @@ -19,7 +19,7 @@
"eslint-plugin-jsx-a11y": "6.x",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "7.x",
"eslint-plugin-react-hooks": "^1.2.0"
"eslint-plugin-react-hooks": "^1.5.1"
},
"dependencies": {
"confusing-browser-globals": "^1.0.5"
Expand Down
6 changes: 6 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ module.exports = function(webpackEnv) {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
react: path.resolve(paths.appNodeModules, './react'),
'react-dom': path.resolve(paths.appNodeModules, './react-dom'),
'styled-components': path.resolve(
paths.appNodeModules,
'./styled-components'
),
},
plugins: [
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
Expand Down
4 changes: 2 additions & 2 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bluealba/react-scripts",
"version": "2.1.2",
"version": "2.1.4",
"description": "Configuration and scripts for Create React App.",
"repository": "facebook/create-react-app",
"license": "MIT",
Expand All @@ -25,7 +25,7 @@
"types": "./lib/react-app.d.ts",
"dependencies": {
"@bluealba/babel-preset-react-app": "^7.0.0",
"@bluealba/eslint-config-react-app": "^3.1.1",
"@bluealba/eslint-config-react-app": "^3.1.3",
"@babel/core": "7.2.2",
"@svgr/webpack": "4.1.0",
"babel-core": "7.0.0-bridge.0",
Expand Down

0 comments on commit 354413a

Please sign in to comment.