0.1.4 • Published 4 years ago
@hmlr/eslint-config-proof-of-concept v0.1.4
HMLR ESLint Config
This is not yet the agreed upon set of rules, but only a proof of concept as to how we manage this config
npm i @hmlr/eslint-config-proof-of-concept
.eslintrc
https://eslint.org/docs/developer-guide/shareable-configs#using-a-shareable-config
{
"extends": "@hmlr/eslint-config-proof-of-concept"
}
Testing
The aim is to be able to verify our config. Running npm run test
will try to apply the config to the file test/test.js
fixing whatever it can, write the result to a new file (test/test-fixed.js
) and compare it to the target file (test/target.js
).
If successful the two files should be identical (test/test-fixed.js
and test/target.js
).
As this is only a proof of concept, this test is currently only designed to work on a Mac
Check your config
npx eslint-config-prettier index.js