An opinionated configuration that is Airbnb + Prettier + tweaks.
(
export PKG=eslint-config-mods;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add -D "$PKG@latest"
)
Reduce amount of package dependencies and overhead
By copying our original configuration and "parsing" it during compile time, we no longer import configs e.g. eslint-config-prettier.
We only have to import plugins as per normal (which is admitedly a larger part).
Configuration is no longer opaque but instead transparent. Links are injected above the rules so it is fast and easy to understand why the rule was implemented.
- Install/update new configurations as devDependencies with
yarn add -Dand peerDependencies withyarn add -P - Run
yarn start - Check if index.js is generated properly, and links work.
- Commit to git
- Publish to npm