ahmadnassri / echint

Quick validation of files against EditorConfig
https://www.npmjs.com/package/echint
ISC License
16 stars 6 forks source link

Difference from ECLint? #1

Closed jednano closed 9 years ago

jednano commented 9 years ago

Does this project do something that ECLint doesn't? I'm not complaining, but definitely curious why this project was introduced a couple months after ECLint.

ahmadnassri commented 9 years ago

I did come across ECLint when I was initially researching, the difference for me is needing something simple and lightweight to simply check for the validity of files for the purpose of including in pretest step in projects as well as having configurations options in package.json and the Environment.

in that context ECHint is an utility on top of lintspaces which has been around as far back as Apr, 2014

ECLint does a great job of diving deep into the editorconfig spec and providing the ability to infer and fix files, which is well beyond the scope of a "hinting" utility that ECHint strives to be :)

the check method in ECLint is also capable of achieving this, but it felt like a big overhead (given the project size) to include just for the purpose of checking ...

perhaps if ECLint can be broken down into multiple projects (something like eclint-core, eclint-check, eclint-fix, eclint-infer etc ...) each with the shared lightweight core and diverse functionality, then joined with eclint as the all-in-one package, then that'll be awesome, and folks can choose to include relevant parts for different purposes.

in this context eclint-check would replace echint, maybe it can even inherit some of the functionality added (configuring through package.json + Environment) as the usage become wider.

jednano commented 9 years ago

I'm inclined to agree with you. If I could go back, I would definitely do that; however, I don't think I want to invest the time at this point. Thanks for your explanation! And great job on this package. It looks well done!

ahmadnassri commented 9 years ago

thanks! right back at ya! :+1: