-
Notifications
You must be signed in to change notification settings - Fork 6
Add "Standard" javascript linting #63
Comments
Sounds reasonable to me. |
Is it possible to do this only for lines changed or similar? I imagine this'll make a lot of projects frustrating for people to update to start with. |
How can we package up the npm module in this gem? |
One approach would be to use Some challenges I foresee with using
|
A WIP to add Javascript linting based on the eslint-rails approach for getting eslint to run in a Ruby environment: https://github.com/alphagov/govuk-lint/compare/javascript-linting I've stopped this POC because the I'd prefer something that uses the npm standard package. I've raised an issue on govuk-puppet regarding the Node version available on Jenkins and VMs: alphagov/govuk-puppet#5942 |
@fofr thanks for looking into this Paul! Now that Rails 5.1 is released with support for webpack and yarn built in, would that be an easier route for this? |
@tvararu Yes, I think that’s promising too. It looks like there are some webpack standard libs (eg https://github.com/timoxley/standard-loader). I'm not sure how webpack/yarn dependencies can be packaged into a gem like govuk-lint. We'll still need to get Node upgraded first. Requires |
FYI - We now use XO for linting. |
See #51 |
"Standard" was added to govuk_frontend_toolkit here:
alphagov/govuk_frontend_toolkit#334
By adding Standard to
govuk-lint
we can lint Javascript across our apps using the same config.@NickColley @tvararu @dsingleton
The text was updated successfully, but these errors were encountered: