Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upConfiguring external JSCS and ESLint #33
Comments
This comment has been minimized.
This comment has been minimized.
|
I like the idea of It feels like this approach is more about extracting the rules themselves and running them in their respected linters directly instead of having a singular linting tool. In situations where the command can't be run (or no plugin exists) I could see the benefit of directly extracting those rules and running them in their native linters could be a way of solving the problem. Perhaps adding |
This comment has been minimized.
This comment has been minimized.
|
@Flet I hear you completely. Standard should, itself, provide the utility that makes it so that by default my Vim does the right thing in the Standardized project. So I don't like the idea of another module. If possible future switching of tools is the issue here, then the Then, when Standard uses a different tool, in the future, it can quickly and easily make sure that that tool is configured correctly via the |
This comment has been minimized.
This comment has been minimized.
|
Sorry @mightyiam – this isn't going to happen. Install scripts are janky, error-prone, and an anti-pattern. For vim support, just install Syntastic which now support |
mightyiam commentedFeb 9, 2015
Continuing from #31, I don't think that a Vim plugin is the correct path to take.
We can leverage existing code to achieve more results if we aim to use the default behaviors of JSCS and ESLint.
JSCS can be directed to a configuration file through
package.json.So if we use the
installnpm script ofstandardto inject a property to direct JSCS to our config file, so that it ends up like the followingThen JSCS will serve us, not matter if it is run through Vim or any other editor/tool, most likely.
Is this about JSCS correct, @mikesherov, please?
Would it prevent JSCS from processing other
.jscsrcfiles in the tree?ESLint seems halfway there, because it can be configured via
package.jsonbut it doesn't have an include directive.Adding a property to the
package.jsonseems reasonable to me, since our users will see that change and not miss it. And it will be documented and it is only a small change. We just have to figure out how well this works/will work with JSCS and ESLint.This approach may even simplify Standard's code a little.