You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 plugins field to the Options interface which would be string | Array<string>
Add a plugin flag to the CLI (with a plugins alias and update the help text)
Check if plugins exists on the options object for both ESLint and TSLint. If it exists, combine options.plugins with config.plugins.
Add a test in tests/config.ts (for both ESLint and TSLint) to make sure that the output config does contain options.plugins.
Add a test for both ESLint and TSLint in tests/api.ts that calls lynt with plugins and rules (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.
The text was updated successfully, but these errors were encountered:
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
, andtslint-react
).What would need to be done:
plugins
field to theOptions
interface which would bestring | Array<string>
plugin
flag to the CLI (with aplugins
alias and update the help text)plugins
exists on theoptions
object for both ESLint and TSLint. If it exists, combineoptions.plugins
withconfig.plugins
.tests/config.ts
(for both ESLint and TSLint) to make sure that the output config does containoptions.plugins
.tests/api.ts
that callslynt
withplugins
andrules
(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.
The text was updated successfully, but these errors were encountered: