Releases: bamlab/react-native-project-config
Releases · bamlab/react-native-project-config
[email protected]
What's Changed
eslint-plugin
- add multiple bug prevention rules by @matthieugicquel in #110
8 new rules that help with avoiding bugs and keeping code readable were added.
Full Changelog: https://github.com/bamlab/react-native-project-config/compare/@bam.tech/[email protected][email protected]/[email protected]
[email protected]
What's Changed
- feat(eslint-plugin): add new imports config by @matthieugicquel in #108
How to update
This release adds a deterministic config for JS/TS imports, included in recommended
. Imports will be grouped and sorted automatically.
yarn up @bam.tech/eslint-plugin
# peer-deps have changed
npx install-peerdeps @bam.tech/eslint-plugin --dev --yarn
# You will probably have lots of changes, but most of the new rules should be auto-fixable
yarn test:lint --fix
If you were using VS Code's organizeImports
, you can remove it.
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false // done through `@bam.tech/eslint-plugin` to allow enforcing in CI
},
}
You can have a look at the config, in case you want to customize some rules
@bam.tech/[email protected]
1.0.0 (2023-09-14)
Features
- add array-callback-return rule (#58) (0b24132)
- add new rule react/no-unused-prop-types (#52) (5cfca6d)
- add unused imports rules (#57) (fbdcd15)
- remove no-raw-text-r
- feat: remove no-raw-text rule (#54) (6d5732e)
BREAKING CHANGES
- add array-callback-return rule
- add react/no-unused-prop-types rule
- upgrade testing library plugin