Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Stop using babel-plugin-jsx-pragmatic #827
Since: * the plugin is not maintained and does not have a version that officially supports Babel 7 (it seems to work, but does so by pulling in Babel 6 dependencies that would presumably end up causing issues in the future) * the automatic imports break being able to import other things from `React` * explicit is better than implicit (`python -m this` <3) Users will need to add the missing imports when they upgrade to Neutrino 9, but the airbnb preset will warn them (if they use it), and we'll call it out in the migration guide.
`@neutrinojs/preact` already had a dependency on `eslint-plugin-react`, but wasn't actually using it. Now the React ESLint plugin is enabled if an ESLint configuration is found - the same as for the React preset. This will make it easier for Preact users to realise what changes they need to make, now that we're not using `babel-plugin-jsx-pragmatic`. Fixes #821.