This is my first npm package to help lint React Native projects.
yarn add eslint-config-react-native-dotcode --dev
In .eslintrc
:
{
"extends": "react-native-dotcode"
}
In babel.config.js
add the following
module.exports = {
"..."
"plugins": [
[
"babel-plugin-root-import", {"rootPathSuffix": "src"},
],
],
"..."
}
Configure CI/CD for version control