eslint+xo sharable config with some opinionated rule overrides
MIT License
eslint+xo sharable config with some opinionated rule overrides
This makes diffs simpler.
Correct π code:
const fizz = {
blep: 'bloop',
};
Cause it looks better.
Correct π code:
const { curly } = foo;
const bar = [ square ];
We still use objects as poor man's hashmaps.
Correct π code:
const rates = {
eur_usd: 1,
};
IMO reads better. Also makes diffs simpler.
Correct π code:
return user.email
|| user.phone
|| user.slug;
Error
subclassing.Installation:
yarn add --dev eslint-config-xo-overrides
yarn eslint-config-xo-overrides
or
npm install --save-dev eslint-config-xo-overrides
./node_modules/.bin/eslint-config-xo-overrides
This will install the package and add the following to your package.json
:
{
"xo": {
"extends": ["eslint-config-xo-overrides"]
}
}