Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin refinement #908

Open
magurotuna opened this issue Sep 23, 2021 · 0 comments
Open

Plugin refinement #908

magurotuna opened this issue Sep 23, 2021 · 0 comments

Comments

@magurotuna
Copy link
Member

magurotuna commented Sep 23, 2021

We already have a prototype of plugin, but it needs to be refined further to make it ready for use. This issue gives a TODO list of necessary refinements.

  • making plugins writable in TypeScript, maybe powered by the internal mechanism of Deno CLI
  • allowing to fetch remote modules, which also may be powered by Deno CLI
  • switching from visitor.js to the Deno version of ast-view
  • considering how to enable plugins via config file
    • it would be good to have some mechanism to "group" additional rules, like ESLint does
    • users would write like:
import NoConsole from "./no_console.ts";
import Eqeqeq from "./eqeqeq.ts";

DenoLint.register({
  name: "mySuperPlugin",
  rules: [
    NoConsole,
    Eqeqeq,
  ] 
});
  • writing documentation on how to implement plugins
    • at least an actual implementation example of a plugin would be fine
    • complicated examples are not really necessary at the initial stage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant