# Linter library choice

**URL:** <https://forum.xwiki.org/t/linter-library-choice/13374>\
**Category:** Cristal\
**Tags:** proposal\
**Created:** [October 26, 2023, 3:25pm UTC](https://forum.xwiki.org/t/linter-library-choice/13374 "2023-10-26T15:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [October 26, 2023, 3:25pm UTC](https://forum.xwiki.org/t/linter-library-choice/13374/1 "2023-10-26T15:25:07Z")

</div>

Hello all,

We need to have a linter tp keep our codebase clean, consistent, and close to the best practices is

## Critria

- developed by a community
- good editor support (at least VSCode and Jetbrain’s IDEs)
- extensible, to be able to support additional syntax on top of the ones we already use (javascript, typescript, vue…)

## Candidates

- [eslint](https://eslint.org/) (Vue 3 default)
- [quick-lint-js](https://quick-lint-js.com/)
- [standardjs](https://standardjs.com/)
- [putout](https://github.com/coderaiser/putout)
- [jshint](https://jshint.com/)
- [prettier](https://prettier.io/) code formatting only (Vue 3 default)
- [biome](https://biomejs.dev/)

## Choice Matrix

| Library | Analysis | Governance | Github link | License | Editor Support | Modular/Extensible |
| --- | --- | --- | --- | --- | --- | --- |
| eslint | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) standard for Vue 3 + supported by a community | Community (part of [https://openjsf.org/)](https://openjsf.org/) | [GitHub - eslint/eslint: Find and fix problems in your JavaScript code.](https://github.com/eslint/eslint) | MIT | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) yes, see [Integrations - ESLint - Pluggable JavaScript Linter](https://eslint.org/docs/latest/use/integrations) | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) yes, see [Ways to Extend ESLint - ESLint - Pluggable JavaScript Linter](https://eslint.org/docs/latest/extend/ways-to-extend) |
| quick-lint-js | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) no IDE support | | [GitHub - quick-lint/quick-lint-js: quick-lint-js finds bugs in JavaScript programs](https://github.com/quick-lint/quick-lint-js) | GPL 3.0 | ![error](https://forum.xwiki.org/uploads/default/original/2X/6/621519207f0f6741314befadb172e71aa209302a.png) no support for Jetbrains IDEs | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) no |
| standardjs | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) not extensible | | [GitHub - standard/standard: 🌟 JavaScript Style Guide, with linter & automatic code fixer](https://github.com/standard/standard) | MIT | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) yes, see [GitHub - standard/standard: 🌟 JavaScript Style Guide, with linter & automatic code fixer](https://github.com/standard/standard#are-there-text-editor-plugins) | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) no |
| putout | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) one main contributor, not popular enough | | | | | |
| Build on top of eslint and babel, take a more radical stance on fixing and allow itself to apply fix than can change the semantics. | ![error](https://forum.xwiki.org/uploads/default/original/2X/6/621519207f0f6741314befadb172e71aa209302a.png) 1 main contributor | [GitHub - coderaiser/putout: 🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏](https://github.com/coderaiser/putout) | MIT | | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) yes | |
| jshint | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) not extensible | | [https://github.com/jshint/jshint](https://github.com/jshint/jshint) | MIT | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) no | ![accept](https://forum.xwiki.org/uploads/default/original/2X/3/3f9f36a2b8fc173dc6c3f748b76c909ccbdd9e49.png) yes |
| biome | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) not extensible, no IDE support | | [GitHub - biomejs/biome: A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.](https://github.com/biomejs/biome) | MIT | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) no support for Jetbrains IDEs | ![cancel](https://forum.xwiki.org/uploads/default/original/2X/6/69e7d63e67170e8418ed622197e631c6929bd0d5.png) not |

## Conclusion

I suggest to use eslint are our linter. This is the default linter for Vue 3.

---

<div class="post-metadata">

**Author:** ![ludovic](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/l/7ab992/32.png) [@ludovic](https://forum.xwiki.org/u/ludovic)\
**Post date:** [October 27, 2023, 1:41pm UTC](https://forum.xwiki.org/t/linter-library-choice/13374/2 "2023-10-27T13:41:21Z")

</div>

+1 for eslint
