lynt
lynt copied to clipboard
Add --plugin functionality to add extra TSLint or ESLint plugins
v0.4 allows for rule overrides, however the only rules you can add on are the standard ESLint/TSLint rules as well as rules for the plugins that are shipped with lynt (eslint-plugin-flowtype, eslint-plugin-react, tslint-microsoft-contrib, and tslint-react).
What would need to be done:
- [ ] Add a
pluginsfield to theOptionsinterface which would bestring | Array<string> - [ ] Add a
pluginflag to the CLI (with apluginsalias and update the help text) - [ ] Check if
pluginsexists on theoptionsobject for both ESLint and TSLint. If it exists, combineoptions.pluginswithconfig.plugins. - [ ] Add a test in
tests/config.ts(for both ESLint and TSLint) to make sure that the output config does containoptions.plugins. - [ ] Add a test for both ESLint and TSLint in
tests/api.tsthat callslyntwithpluginsandrules(rules from the plugin) passed to options. You can look at the other test cases as reference.
Let me know if anyone would be interested in taking this on! I'd be happy to help along the way.