Comments (6)
- Create separate linting apps for different kinds of linting, ie standard-lint, eslint-lint, etc.
This is actually how the Atom community has solved it with the @AtomLinter org.
The @AtomLinter org contains a bunch of plugins for the https://atom.io/packages/linter Atom package. It works like this:
- The main linter package provides an API for plugins to conform to
- A plugin interfaces with a command-line tool which it runs when instructed, parses the output and returns the information through the API to the main package
- The main package visualizes the information it gets back from the plugin
What this means though is that each command-line tool has to be configured to run on the machine. This would be very daunting for something that you want to run on Heroku or Now if you want to support more than just JavaScript or Node. Using something like tree-sitter would solve that problem, but all that gives you is the general parsing framework and, over time, parsers for various languages. You would have to create the rules for each yourself.
from linter.
cc @lee-dohm because @AtomLinter and your experience with that community, and @maxbrunsfeld because @tree-sitter
I think since we're now supporting the use of standard for all plugins, this should at least have a standard option.
This app actually already uses standard because I assumed we'd switch to it eventually.t 😁
3. Create separate linting apps for different kinds of linting, ie
standard-lint
,eslint-lint
, etc.
This is actually how the Atom community has solved it with the @AtomLinter org. I looked into ways of just reusing those Atom packages when I started working on this app, but they are very tightly coupled to Atom, and they all have lots of dependencies, which makes turning this into a service rather challenging.
Whats the best way to accomplish this?
Long term, I think the only sane way to do this without a lot of infrastructure and docker containers is to build a linter that is implemented entirely in one language (like JavaScript) that has a standardized way of declaring syntax rules for each language. tree-sitter is an ideal tool to build it with. This would be a huge effort.
from linter.
This app actually already uses standard...
Wow I did like several hours of development on this app, and I definitely knew it used standard given I used the standard docs as a basis for my implementation 😆
Still relevant the idea of supporting other linters lol
from linter.
You would have to create the rules for each yourself
And/or adapters for the linter it's emulating (like the yml config for rubocop).
from linter.
I'm quite interested in this...but I wonder if something like LSP support would be needed for general usage.
from linter.
👋 I would love to help figure out how this Probot app can support multiple linters, as I would like to be able to use ESLint for linting a pull request.
from linter.
Related Issues (12)
- Action required: Greenkeeper could not be activated 🚨
- Implement Prettier HOT 1
- Single commit for many files HOT 1
- Any good first issue?
- Project status HOT 3
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
- Action required: Greenkeeper could not be activated 🚨
- Add more linting options through a yml file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter.