chore: add lint cache

pull/4462/head
Simon He 2023-09-18 10:33:52 +08:00
parent 10dc803b22
commit ed62be43f9
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ coverage
dist dist
.DS_Store .DS_Store
.vscode .vscode
.eslintcache

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "primevue", "name": "primevue",
"version": "3.34.1", "version": "3.34.2-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "primevue", "name": "primevue",
"version": "3.34.1", "version": "3.34.2-SNAPSHOT",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@ -17,12 +17,12 @@
"build:package": "NODE_ENV=production rollup -c && node build-meta && node api-generator/build-api && gulp build-styles", "build:package": "NODE_ENV=production rollup -c && node build-meta && node api-generator/build-api && gulp build-styles",
"build:check": "npm run format:check && npm run security:check", "build:check": "npm run format:check && npm run security:check",
"security:check": "npm audit --production --audit-level high", "security:check": "npm audit --production --audit-level high",
"format": "prettier --write \"**/*.{js,vue,d.ts}\"", "format": "prettier --write \"**/*.{js,vue,d.ts}\" --cache",
"format:check": "prettier --check \"**/*.{js,vue,d.ts}\"", "format:check": "prettier --check \"**/*.{js,vue,d.ts}\"",
"test:unit": "vitest run", "test:unit": "vitest run",
"test:unit:watch": "vitest watch", "test:unit:watch": "vitest watch",
"test:coverage": "vitest run --coverage", "test:coverage": "vitest run --coverage",
"lint": "eslint --ext \".js,.vue\" --ignore-path .gitignore .", "lint": "eslint --ext \".js,.vue\" --ignore-path .gitignore . --cache",
"lint:fix": "eslint --fix --ext \".js,.vue\" --ignore-path .gitignore .", "lint:fix": "eslint --fix --ext \".js,.vue\" --ignore-path .gitignore .",
"apidoc": "node ./api-generator/build-apidoc.js", "apidoc": "node ./api-generator/build-apidoc.js",
"build:api": "node ./api-generator/build-api.js && npm run apidoc" "build:api": "node ./api-generator/build-api.js && npm run apidoc"