trailsjs / trails

:evergreen_tree: Modern Web Application Framework for Node.js.
http://trailsjs.io
Other
1.66k stars 70 forks source link

Custom eslint style and generator #297

Closed clayrisser closed 7 years ago

clayrisser commented 7 years ago

I understand the importance of a standardized style guide, however, many user's and companies already have their own style guide that differs strongly from your style guide. What is the best way to override this?

Currently, I forked the trails/eslint-config-style to jamrizzi/eslint-config-trails. This works just fine, but I'm wondering if there is a better way to handle this. Also, the generator does not work with my custom style guide. Is there a way to override the generator, or would I need to fork the generator and customize it myself?

jaumard commented 7 years ago

You can just change the eslint extends in the package.json and use yours (or another one). For the generator no way to override it and even if you override the generator you'll not be able to change template files because they are embedded into trailpacks directly.

clayrisser commented 7 years ago

Ok, thanks