Merge pull request #4462 from Simon-He95/master

chore: add lint cache
pull/4476/head
Tuğçe Küçükoğlu 2023-09-19 21:53:53 +03:00 committed by GitHub
commit d7b2d7d526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

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

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"