Przeglądaj źródła

Rename `test-lint` script to `lint` (#21652)

* package.json Rename test-lint script to lint

* Update lint script calls

* lint-fix: Use existing scripts
Marco Fugaro 4 lat temu
rodzic
commit
952441fdbb
2 zmienionych plików z 5 dodań i 5 usunięć
  1. 1 1
      .github/workflows/ci.yml
  2. 4 4
      package.json

+ 1 - 1
.github/workflows/ci.yml

@@ -28,7 +28,7 @@ jobs:
         run: npm ci
 
       - name: === Linting ===
-        run: npm run test-lint
+        run: npm run lint
 
   unit:
     name: "Unit testing"

+ 4 - 4
package.json

@@ -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",