From 9928b7a409fa107c0d591fcca0caa576a4a42a25 Mon Sep 17 00:00:00 2001 From: Khai Truong <56820749+khaitruong922@users.noreply.github.com> Date: Sat, 13 Jul 2024 23:40:59 +0700 Subject: [PATCH] Remove JSON test from static analysis (#1216) * Remove JSON test from static analysis * update docs --- docs/development/npm-scripts.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/development/npm-scripts.md b/docs/development/npm-scripts.md index 522be174e9..802e9f5d1a 100644 --- a/docs/development/npm-scripts.md +++ b/docs/development/npm-scripts.md @@ -19,7 +19,7 @@ Scripts can be executed by running `npm run `. Runs most of the tests that are used more frequently in the typical development process. - `test:static-analysis` - Runs all of the static analysis tests. + Runs all of the static analysis tests (excluding JSON). - `test:js` Runs [eslint](https://eslint.org/) on all of the JavaScript and TypeScript files in the project. diff --git a/package.json b/package.json index b1a488b1b7..6e85175e82 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:libs": "node ./dev/bin/build-libs.js", "test": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:unit && npm run test:unit:options && npm run test:json && npm run test:md && npm run test:build", "test:fast": "npm run test:js && npm run test:ts && npm run test:unit && npm run test:json:format", - "test:static-analysis": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:json && npm run test:md", + "test:static-analysis": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:md", "test:js": "npx eslint . --ignore-pattern **/*.json", "test:json": "npm run test:json:format && npm run test:json:types", "test:json:format": "npx eslint **/*.json",