package.json 2.7 KB

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