Skip to content

Commit

Permalink
🔧 Update React imports (#859)
Browse files Browse the repository at this point in the history
* 🔧 Change React imports

Explicitly import `* as React`

* 🎨 Get React version from Core React package.json

Since we’re not using the latest version of React at the moment, we
can’t have Eslint assume we’re using it when linting the code

* 📝 Update README

* 📌 Update lock-files
  • Loading branch information
vnys committed Nov 13, 2020
1 parent ed2582e commit 5b53d03
Show file tree
Hide file tree
Showing 128 changed files with 491 additions and 326 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
const pkg = require('./libraries/core-react/package.json')

const {
devDependencies: { react: reactVersion },
} = pkg

module.exports = {
root: true,
extends: [
Expand Down Expand Up @@ -25,7 +31,7 @@ module.exports = {
},
settings: {
react: {
version: 'detect',
version: reactVersion,
},
},
globals: {
Expand Down
2 changes: 1 addition & 1 deletion apps/figma-broker/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b53d03

Please sign in to comment.