package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "browserslist": {
  3. "production": [
  4. ">0.2%",
  5. "not dead",
  6. "not ie <= 11",
  7. "not op_mini all",
  8. "not safari < 12",
  9. "not kaios <= 2.5",
  10. "not edge < 79",
  11. "not chrome < 70",
  12. "not and_uc < 13",
  13. "not samsung < 10"
  14. ],
  15. "development": [
  16. "last 1 chrome version",
  17. "last 1 firefox version",
  18. "last 1 safari version"
  19. ]
  20. },
  21. "dependencies": {
  22. "@sentry/browser": "5.15.4",
  23. "@sentry/integrations": "5.15.4",
  24. "browser-nativefs": "0.4.0",
  25. "i18next-browser-languagedetector": "4.0.2",
  26. "nanoid": "2.1.11",
  27. "react": "16.13.1",
  28. "react-dom": "16.13.1",
  29. "react-scripts": "3.4.1",
  30. "roughjs": "4.0.4",
  31. "socket.io-client": "2.3.0"
  32. },
  33. "devDependencies": {
  34. "@testing-library/jest-dom": "5.3.0",
  35. "@testing-library/react": "10.0.2",
  36. "@types/jest": "25.2.1",
  37. "@types/nanoid": "2.1.0",
  38. "@types/react": "16.9.32",
  39. "@types/react-dom": "16.9.6",
  40. "@types/socket.io-client": "1.4.32",
  41. "asar": "3.0.3",
  42. "eslint": "6.8.0",
  43. "eslint-config-prettier": "6.10.1",
  44. "eslint-plugin-prettier": "3.1.2",
  45. "husky": "4.2.3",
  46. "jest-canvas-mock": "2.2.0",
  47. "lint-staged": "10.1.2",
  48. "node-sass": "4.13.1",
  49. "pepjs": "0.5.2",
  50. "prettier": "2.0.3",
  51. "rewire": "5.0.0",
  52. "typescript": "3.8.3"
  53. },
  54. "engines": {
  55. "node": ">=12.0.0"
  56. },
  57. "eslintConfig": {
  58. "extends": [
  59. "prettier",
  60. "react-app"
  61. ],
  62. "plugins": [
  63. "prettier"
  64. ],
  65. "rules": {
  66. "curly": "warn",
  67. "no-console": [
  68. "warn",
  69. {
  70. "allow": [
  71. "warn",
  72. "error",
  73. "info"
  74. ]
  75. }
  76. ],
  77. "no-else-return": "warn",
  78. "no-useless-return": "warn",
  79. "prefer-const": [
  80. "warn",
  81. {
  82. "destructuring": "all"
  83. }
  84. ],
  85. "prefer-template": "warn",
  86. "prettier/prettier": "warn"
  87. }
  88. },
  89. "homepage": ".",
  90. "husky": {
  91. "hooks": {
  92. "pre-commit": "lint-staged"
  93. }
  94. },
  95. "jest": {
  96. "transformIgnorePatterns": [
  97. "node_modules/(?!(roughjs|browser-nativefs)/)"
  98. ]
  99. },
  100. "private": true,
  101. "scripts": {
  102. "build": "npm run build:app && npm run build:zip",
  103. "build-node": "node ./scripts/build-node.js",
  104. "build:app": "REACT_APP_GIT_SHA=$NOW_GITHUB_COMMIT_SHA react-scripts build",
  105. "build:zip": "node ./scripts/build-version.js",
  106. "eject": "react-scripts eject",
  107. "fix": "npm run fix:other && npm run fix:code",
  108. "fix:code": "npm run test:code -- --fix",
  109. "fix:other": "npm run prettier -- --write",
  110. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  111. "start": "react-scripts start",
  112. "test": "npm run test:app",
  113. "test:update": "npm run test:app -- --updateSnapshot --watchAll=false",
  114. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  115. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  116. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  117. "test:other": "npm run prettier -- --list-different",
  118. "test:typecheck": "tsc"
  119. }
  120. }