3 ms·
I just could not deal with such an opinionated tool. ESLint would not let us adjust settings to accept some of our normal convection's and company code style
by PretzelFisch 6y ago
I just could not deal with such an opinionated tool. ESLint would not let us adjust settings to accept some of our normal convection's and company code style guidelines.
I switched to jshint and have lived a much happier life.
- jakub_g 6y agoThat's interesting, given that the original idea behind eslint was to create a tool to fix the warts of jshint which was apparently not enough flexible! https://eslint.org/docs/about/ https://eslint.org/docs/about/ > The primary reason ESLint was created was to allow developers to create their own linting rules. ESLint is designed to have all rules completely pluggable. > Every rule... Can be turned off or on (nothing can be deemed "too important to turn off") > Rules are "agenda free" - ESLint does not promote any particular coding style Is it the eslint that's opinionated, of the rules config that you were using? Or the maintainers of the rules in the github repo? (or is this sarcasm :)
- PretzelFisch 6y agoSorry this was me mixing up JSLint and ESLint
- jakub_g 6y agoAh, gotcha. JSHint was indeed created to fix JSLint's even greater non-flexibility, long time ago.
- yepthatsreality 6y agoI feel this way but about `prettier.js` (as opposed to eslint.js) instead.
- MatekCopatek 6y agoThat's expected - Prettier intentionally and openly positions themselves at the most extreme extreme end of convention-over-configuration. Their tagline is "Opinionated code formatter". If this bothers you, you should look for a different tool.
- yepthatsreality 6y ago> That's expected - Prettier intentionally and openly positions themselves at the most extreme extreme end of convention-over-configuration. Their tagline is "Opinionated code formatter". If this bothers you, you should look for a different tool. Sometimes I can't use another tool because another dev has snuck the change into the repo. I can't be privy to every change at a large company. I also can and will continue to be bothered by the existence of prettier because of this. Sometimes I like being bothered. It let's me know what kind of crap to avoid in the wild. If this explain bothers you, you should consider other contexts where problems may apply.
- Lazare 6y ago> I just could not deal with such an opinionated tool. ESLint is not opinionated. > ESLint would not let us adjust settings to accept some of our normal convection's and company code style guidelines. Example? > I switched to jshint and have lived a much happier life. JSHint is more opinionated and less configurable than ESLint. I have to ask, but uh...did you maybe get the names of the tools mixed up?
- PretzelFisch 6y agoYes ESLint didn't exist when I set up this project and I confused it for JSLint.