unic / estatico

[DEPRECATED] Estático – Static site generator for frontend unicorns
Other
121 stars 18 forks source link

Introduce ESLint #10

Closed backflip closed 7 years ago

backflip commented 7 years ago
orioltf commented 7 years ago

I did use "extends": "eslint:recommended" (http://eslint.org/docs/rules/) for another project. How would you see that? It sets some rules that we can then overwrite with ours. This produces quite a shorter .eslintrc file.

I would also suggest to sort the rules alphabetically. This is as well how they are presented in their documentation and adds some easiness and expectation when reading the configuration.

backflip commented 7 years ago

@orioltf, alphabetical sorting added.

Do you want to go through the rules and compare them with eslint:recommended? Or should we do this in a second step (ideally after having tested the auto-generated config in some real projects)? I kinda like the current, explicit config since it might help switching from JSHint/JSCS to ESLint by allowing you to compare the current with the previous configs.