package.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "name": "salesforce-app",
  3. "private": true,
  4. "version": "1.0.0",
  5. "description": "Salesforce App",
  6. "scripts": {
  7. "lint": "npm run lint:lwc && npm run lint:aura",
  8. "lint:aura": "eslint **/aura/**",
  9. "lint:lwc": "eslint **/lwc/**",
  10. "test": "npm run test:unit",
  11. "test:unit": "sfdx-lwc-jest",
  12. "test:unit:watch": "sfdx-lwc-jest --watch",
  13. "test:unit:debug": "sfdx-lwc-jest --debug",
  14. "test:unit:coverage": "sfdx-lwc-jest --coverage",
  15. "prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
  16. "prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\""
  17. },
  18. "devDependencies": {
  19. "@prettier/plugin-xml": "^0.12.0",
  20. "@salesforce/eslint-config-lwc": "^0.7.0",
  21. "@salesforce/eslint-plugin-aura": "^1.4.0",
  22. "@salesforce/sfdx-lwc-jest": "^0.9.2",
  23. "eslint": "^7.6.0",
  24. "eslint-config-prettier": "^6.11.0",
  25. "husky": "^4.2.1",
  26. "lint-staged": "^10.0.7",
  27. "prettier": "^2.0.5",
  28. "prettier-plugin-apex": "^1.6.0"
  29. },
  30. "husky": {
  31. "hooks": {
  32. "pre-commit": "lint-staged"
  33. }
  34. },
  35. "lint-staged": {
  36. "**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
  37. "prettier --write"
  38. ],
  39. "**/{aura|lwc}/**": [
  40. "eslint"
  41. ]
  42. }
  43. }