Browse Source

Add standard task for linting JavaScript

pull/667/head
Paul Robert Lloyd 3 years ago
parent
commit
a7bc5273c5
  1. 7
      lib/tasks/lint.rake
  2. 1
      package.json
  3. 946
      yarn.lock

7
lib/tasks/lint.rake

@ -8,10 +8,15 @@ task erblint: :environment do
sh "bundle exec erblint --lint-all"
end
desc "Run Standard"
task standard: :environment do
sh "yarn standard"
end
desc "Run Stylelint"
task stylelint: :environment do
sh "yarn stylelint app/frontend/styles"
end
desc "Run all the linters"
task lint: %i[rubocop erblint stylelint]
task lint: %i[rubocop erblint standard stylelint]

1
package.json

@ -36,6 +36,7 @@
"version": "0.1.0",
"devDependencies": {
"are-you-es5": "^2.1.2",
"standard": "^17.0.0",
"stylelint": "^14.7.1",
"stylelint-config-gds": "^0.2.0"
},

946
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save