Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Suggest: Run alll linters by using npm-run-all on lint script #490

Closed
munierujp opened this issue Apr 21, 2020 · 0 comments · Fixed by #493
Closed

Suggest: Run alll linters by using npm-run-all on lint script #490

munierujp opened this issue Apr 21, 2020 · 0 comments · Fixed by #493

Comments

@munierujp
Copy link
Contributor

munierujp commented Apr 21, 2020

Run alll linters by using npm-run-all on lint script.

like this:

  "scripts": {
    "lint": "npm-run-all --parallel --continue-on-error lint:*",
    "lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "lint:css": "stylelint '**/*.{css,vue}' --ignore-path .gitignore "
  }

lint script runs all lint:* scripts (in this case, lint:js and lint:css) in parallel.

スクリーンショット 2020-04-21 21 33 57

Project author also can add other linter.

  "scripts": {
    "lint": "npm-run-all --parallel --continue-on-error lint:*",
    "lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "lint:css": "stylelint '**/*.{css,vue}' --ignore-path .gitignore ",
    "lint:md": "remark . --quiet --frail --ignore-path .gitignore"
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant