Jelajahi Sumber

Provide lint-local commands to enable use of .eslintrc.local.json supported by #871

Nissa Seru 10 bulan lalu
induk
melakukan
ff70926015
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      package.json

+ 2 - 0
package.json

@@ -272,7 +272,9 @@
 		"compile:integration": "tsc -p tsconfig.integration.json",
 		"install:all": "npm install && cd webview-ui && npm install",
 		"lint": "eslint src --ext ts && npm run lint --prefix webview-ui",
+		"lint-local": "eslint -c .eslintrc.local.json src --ext ts && npm run lint --prefix webview-ui",
 		"lint-fix": "eslint src --ext ts --fix && npm run lint-fix --prefix webview-ui",
+		"lint-fix-local": "eslint -c .eslintrc.local.json src --ext ts --fix && npm run lint-fix --prefix webview-ui",
 		"package": "npm run build:webview && npm run check-types && npm run lint && node esbuild.js --production",
 		"pretest": "npm run compile && npm run compile:integration",
 		"dev": "cd webview-ui && npm run dev",