package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.12.0",
  13. "react-dom": "16.12.0",
  14. "react-scripts": "3.4.0",
  15. "roughjs": "4.0.4",
  16. "stacktrace-js": "2.0.2"
  17. },
  18. "description": "",
  19. "devDependencies": {
  20. "@testing-library/jest-dom": "5.1.1",
  21. "@testing-library/react": "9.4.0",
  22. "@types/jest": "25.1.3",
  23. "@types/nanoid": "2.1.0",
  24. "@types/react": "16.9.22",
  25. "@types/react-dom": "16.9.5",
  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.7",
  32. "node-sass": "4.13.1",
  33. "prettier": "1.19.1",
  34. "rewire": "4.0.1",
  35. "typescript": "3.8.2"
  36. },
  37. "jest": {
  38. "transformIgnorePatterns": [
  39. "node_modules/(?!(roughjs|browser-nativefs)/)"
  40. ]
  41. },
  42. "eslintConfig": {
  43. "extends": [
  44. "prettier",
  45. "react-app"
  46. ],
  47. "plugins": [
  48. "prettier"
  49. ],
  50. "rules": {
  51. "curly": "warn",
  52. "no-console": [
  53. "warn",
  54. {
  55. "allow": [
  56. "warn",
  57. "error",
  58. "info"
  59. ]
  60. }
  61. ],
  62. "no-else-return": "warn",
  63. "no-useless-return": "warn",
  64. "prefer-const": [
  65. "warn",
  66. {
  67. "destructuring": "all"
  68. }
  69. ],
  70. "prefer-template": "warn",
  71. "prettier/prettier": "warn"
  72. }
  73. },
  74. "homepage": "https://excalidraw.com",
  75. "husky": {
  76. "hooks": {
  77. "pre-commit": "lint-staged"
  78. }
  79. },
  80. "main": "src/index.js",
  81. "name": "excalidraw",
  82. "scripts": {
  83. "build": "react-scripts build",
  84. "build-node": "./scripts/build-node.js",
  85. "eject": "react-scripts eject",
  86. "fix": "npm run fix:other && npm run fix:code",
  87. "fix:code": "npm run test:code -- --fix",
  88. "fix:other": "npm run prettier -- --write",
  89. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  90. "start": "react-scripts start",
  91. "test": "npm run test:app",
  92. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  93. "test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
  94. "test:other": "npm run prettier -- --list-different"
  95. },
  96. "version": "1.0.0",
  97. "license": "MIT",
  98. "repository": {
  99. "type": "git",
  100. "url": "https://github.com/excalidraw/excalidraw.git"
  101. }
  102. }