matthieugicquel
released this
02 Jan 17:14
·
11 commits
to main
since this release
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