package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "browserslist": [
  3. ">0.2%",
  4. "not dead",
  5. "not ie <= 11",
  6. "not op_mini all"
  7. ],
  8. "dependencies": {
  9. "browser-nativefs": "0.4.0",
  10. "i18next-browser-languagedetector": "4.0.2",
  11. "nanoid": "2.1.11",
  12. "react": "16.13.1",
  13. "react-dom": "16.13.0",
  14. "react-scripts": "3.4.1",
  15. "roughjs": "4.0.4",
  16. "socket.io-client": "2.3.0",
  17. "stacktrace-js": "2.0.2"
  18. },
  19. "devDependencies": {
  20. "@testing-library/jest-dom": "5.1.1",
  21. "@testing-library/react": "10.0.1",
  22. "@types/jest": "25.1.4",
  23. "@types/nanoid": "2.1.0",
  24. "@types/react": "16.9.25",
  25. "@types/react-dom": "16.9.5",
  26. "@types/socket.io-client": "1.4.32",
  27. "asar": "3.0.1",
  28. "eslint": "6.8.0",
  29. "eslint-config-prettier": "6.10.1",
  30. "eslint-plugin-prettier": "3.1.2",
  31. "husky": "4.2.3",
  32. "jest-canvas-mock": "2.2.0",
  33. "lint-staged": "10.0.8",
  34. "node-sass": "4.13.1",
  35. "pepjs": "0.5.2",
  36. "prettier": "1.19.1",
  37. "rewire": "5.0.0",
  38. "typescript": "3.8.3"
  39. },
  40. "jest": {
  41. "transformIgnorePatterns": [
  42. "node_modules/(?!(roughjs|browser-nativefs)/)"
  43. ]
  44. },
  45. "eslintConfig": {
  46. "extends": [
  47. "prettier",
  48. "react-app"
  49. ],
  50. "plugins": [
  51. "prettier"
  52. ],
  53. "rules": {
  54. "curly": "warn",
  55. "no-console": [
  56. "warn",
  57. {
  58. "allow": [
  59. "warn",
  60. "error",
  61. "info"
  62. ]
  63. }
  64. ],
  65. "no-else-return": "warn",
  66. "no-useless-return": "warn",
  67. "prefer-const": [
  68. "warn",
  69. {
  70. "destructuring": "all"
  71. }
  72. ],
  73. "prefer-template": "warn",
  74. "prettier/prettier": "warn"
  75. }
  76. },
  77. "homepage": ".",
  78. "husky": {
  79. "hooks": {
  80. "pre-commit": "lint-staged"
  81. }
  82. },
  83. "main": "src/index.js",
  84. "name": "excalidraw",
  85. "scripts": {
  86. "build:app": "react-scripts build",
  87. "build:zip": "node ./scripts/build-version.js",
  88. "build": "npm run build:app && npm run build:zip",
  89. "build-node": "node ./scripts/build-node.js",
  90. "eject": "react-scripts eject",
  91. "fix": "npm run fix:other && npm run fix:code",
  92. "fix:code": "npm run test:code -- --fix",
  93. "fix:other": "npm run prettier -- --write",
  94. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  95. "start": "react-scripts start",
  96. "test": "npm run test:app",
  97. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  98. "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
  99. "test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
  100. "test:typecheck": "tsc",
  101. "test:other": "npm run prettier -- --list-different"
  102. },
  103. "version": "1.0.0",
  104. "license": "MIT",
  105. "repository": {
  106. "type": "git",
  107. "url": "https://github.com/excalidraw/excalidraw.git"
  108. },
  109. "engines": {
  110. "node": ">=12.0.0"
  111. }
  112. }