package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. "browser-nativefs": "0.4.0",
  23. "i18next-browser-languagedetector": "4.0.2",
  24. "nanoid": "2.1.11",
  25. "react": "16.13.1",
  26. "react-dom": "16.13.0",
  27. "react-scripts": "3.4.1",
  28. "roughjs": "4.0.4",
  29. "socket.io-client": "2.3.0",
  30. "stacktrace-js": "2.0.2"
  31. },
  32. "devDependencies": {
  33. "@testing-library/jest-dom": "5.1.1",
  34. "@testing-library/react": "10.0.1",
  35. "@types/jest": "25.1.4",
  36. "@types/nanoid": "2.1.0",
  37. "@types/react": "16.9.25",
  38. "@types/react-dom": "16.9.5",
  39. "@types/socket.io-client": "1.4.32",
  40. "asar": "3.0.2",
  41. "eslint": "6.8.0",
  42. "eslint-config-prettier": "6.10.1",
  43. "eslint-plugin-prettier": "3.1.2",
  44. "husky": "4.2.3",
  45. "jest-canvas-mock": "2.2.0",
  46. "lint-staged": "10.0.8",
  47. "node-sass": "4.13.1",
  48. "pepjs": "0.5.2",
  49. "prettier": "2.0.2",
  50. "rewire": "5.0.0",
  51. "typescript": "3.8.3"
  52. },
  53. "engines": {
  54. "node": ">=12.0.0"
  55. },
  56. "eslintConfig": {
  57. "extends": [
  58. "prettier",
  59. "react-app"
  60. ],
  61. "plugins": [
  62. "prettier"
  63. ],
  64. "rules": {
  65. "curly": "warn",
  66. "no-console": [
  67. "warn",
  68. {
  69. "allow": [
  70. "warn",
  71. "error",
  72. "info"
  73. ]
  74. }
  75. ],
  76. "no-else-return": "warn",
  77. "no-useless-return": "warn",
  78. "prefer-const": [
  79. "warn",
  80. {
  81. "destructuring": "all"
  82. }
  83. ],
  84. "prefer-template": "warn",
  85. "prettier/prettier": "warn"
  86. }
  87. },
  88. "husky": {
  89. "hooks": {
  90. "pre-commit": "lint-staged"
  91. }
  92. },
  93. "jest": {
  94. "transformIgnorePatterns": [
  95. "node_modules/(?!(roughjs|browser-nativefs)/)"
  96. ]
  97. },
  98. "private": true,
  99. "scripts": {
  100. "build": "npm run build:app && npm run build:zip",
  101. "build-node": "node ./scripts/build-node.js",
  102. "build:app": "react-scripts build",
  103. "build:zip": "node ./scripts/build-version.js",
  104. "eject": "react-scripts eject",
  105. "fix": "npm run fix:other && npm run fix:code",
  106. "fix:code": "npm run test:code -- --fix",
  107. "fix:other": "npm run prettier -- --write",
  108. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  109. "start": "react-scripts start",
  110. "test": "npm run test:app",
  111. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  112. "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
  113. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  114. "test:other": "npm run prettier -- --list-different",
  115. "test:typecheck": "tsc"
  116. }
  117. }