Giter VIP home page Giter VIP logo

Comments (7)

nzakas avatar nzakas commented on June 2, 2024

Plugins are a stretch, but options would be nice.

from archive-website.

ilyavolodin avatar ilyavolodin commented on June 2, 2024

Correct me if I'm wrong, but currently, there's absolutely no way to do plugins in a browser, right? That feels like an oversight, maybe that should be looked into.

from archive-website.

nzakas avatar nzakas commented on June 2, 2024

You are correct. It's not an oversight - ESLint is made primarily to be used on the command line. We only create a browserified bundle for demo purposes, but it's in no way meant to have all the functionality available on the command line.

from archive-website.

ilyavolodin avatar ilyavolodin commented on June 2, 2024

I was thinking more in terms of Orion, but I guess, they are forking ESLint anyways, if they want plugin support, they should be able to add it in.

from archive-website.

nzakas avatar nzakas commented on June 2, 2024

Yeah, they just need to create a plugin loader and it should work fine.

from archive-website.

ilyavolodin avatar ilyavolodin commented on June 2, 2024

I started looking into this, and the biggest problem that I see is rule configuration options. We do not have central place that lists all available options for rules, and in order to make this even remotely user friendly, I would need to list config options as something like checkboxes.
I also do not want to maintain options separately from rules themselves, because that means that the page will need to be updated every time there's a change to the rule. I think in general it would be a good idea to add rules options somewhere in the ESLint code. It will help not only with this case, but also will help other people who create editor integrations, and it would be useful for documentation purposes.

from archive-website.

nzakas avatar nzakas commented on June 2, 2024

I think in the short term it makes sense to just toggle options off or on rather than configuring them completely.

We do have this issue open to figure out how to deal with rule options more sanely: eslint/eslint#967

from archive-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.