Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 31 million developers.Sign up
Huge thanks to @sheerun for all the feedback on V1. This version comes with many improvements.
- Remove dependency on
- Use eslint output and add
- Allow extending with .eslintrc
- Support more environments, typescript, flow, react, vue
.prettierignoreinto default ignores
--fixflag has been removed to make Healthier more focused on code quality linting and be unopinionated about your choice of formatter. This avoids installing 2 extra dependencies – prettier and eslint-plugin-prettier, which means installation is faster, but also the checks run faster since we avoid double parsing each file with eslint and then prettier. This makes Healthier a more friendlier and less confusing tool when using it with prettierx, prettier-standard or any other formatter. This will also avoid any version conflicts between the Prettier used in your project and the Prettier that was used in Healthier to lint the style. Inline with this, the
--initflag has been removed too, because it really is not in scope for Healthier to dictate stype preference when Healthier is a pure style agnostic linter.
- The output is now formatted using eslint's formatters and accepts any eslint
--formatoption. This means a nicer looking default output, but also better integration with existing tooling since eslint format is more widely used. Incidentally, this helps to improve SublimeLinter-contrib-healthier plugin greatly. It's now a little bit faster and more comprehensive, it displays syntax errors and internal eslint errors, such as information about missing plugins.
- It's possible to extend eslint rules used by creating
.eslintrc(or any other form that eslint supports). Previously, it was already possible to pass
--pluginvia command line argument or
healthierkey. But now it's also possible to use
.eslintrcwhich allows granular rule overrides or using plugin rules such as
react-a11ywithout having to eject from the tool.
- All of the
eslint-config-prettierrules are being imported to ensure that styling related rules are turned off even when you're using typescript, vue, and other supported environments.
.prettierignoreis now taken into account as part of the ignores, if you're not formatting that code, you probably also don't want to be linting it.
--verboseflag was removed since the output now includes the rule names depending on the