Skip to content

Commit

Permalink
Rename test-lint script to lint (mrdoob#21652)
Browse files Browse the repository at this point in the history
* package.json Rename test-lint script to lint

* Update lint script calls

* lint-fix: Use existing scripts
  • Loading branch information
marcofugaro authored Apr 14, 2021
1 parent 3ab091a commit 952441f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: npm ci

- name: === Linting ===
run: npm run test-lint
run: npm run lint

unit:
name: "Unit testing"
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
},
"scripts": {
"start": "npm run dev",
"test": "npm run test-lint && npm run test-unit",
"test": "npm run lint && npm run test-unit",
"build": "rollup -c utils/build/rollup.config.js",
"build-examples": "rollup -c utils/build/rollup.examples.config.js && echo '\nFormatting...' && eslint examples/js --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
"lint-fix": "eslint src --ext js --fix && eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc --fix",
"lint-docs": "eslint docs --ext html",
"lint": "eslint src --ext js",
"lint-examples": "eslint examples/js examples/jsm --ext js --ignore-pattern libs --ignore-pattern ifc",
"test-lint": "eslint src --ext js",
"lint-fix": "npm run lint -- --fix && npm run lint-examples -- --fix",
"lint-docs": "eslint docs --ext html",
"test-unit": "npm run unit --prefix test",
"test-unit-examples": "npm run unit-examples --prefix test",
"test-e2e": "node test/e2e/puppeteer.js",
Expand Down

0 comments on commit 952441f

Please sign in to comment.