Yes, but how would you ensure the repo structure within eslint? The only thing eslint needs from the package is the rules folder.
What do you think about filing an issue for this feature? So it hopfully gets implemented in eslint 0.5 You can always omit bundling of tests when publishing to npm, but I think > there's value in having the same repo structure for all rulesets. Doing so > allows the same tools to be used, the same testing, etc. > > > On Fri, Apr 4, 2014 at 2:31 AM, Mathias Schreck > <[email protected]<javascript:> > > wrote: > >> Hi, >> >> that would be a great feature for eslint. We have already implemented >> some framework specific rules which we want to publish and share. >> >> >> Ideally we'd like to be able to have rules packaged and shared via npm >>> like any other package. The structure I'm thinking of is: >>> >>> * lib/ >>> * rules/ >>> * (rules files) >>> * tests/ >>> * lib/ >>> * rules/ >>> * (test files) >>> >> >> Do you really want to include the tests in a packaged rules bundle? >> Normally tests are excluded in a npm package by adding the folder to >> .npmignore. >> I suggest something like this: >> * lib/ (or any other folder, this would be ignored by eslint anyway) >> * (package specific libs/helpers) >> * rules/ >> * (rules files) >> >> Then, we could specify to load them in a config file as: >>> >>> { >>> rulesets: [ "npm-package-name", "./path/to/package" ] >>> } >>> >> >> This could also be helpful for grouping the core rules (as discussed in >> eslint#692). >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ESLint" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > ______________________________ > Nicholas C. Zakas > @slicknet > > Author, Professional JavaScript for Web Developers > Buy it at Amazon.com: > http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3 > > -- You received this message because you are subscribed to the Google Groups "ESLint" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
