package.json 2.4 KB

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