You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.0",
  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. "@types/jest": "25.1.1",
  20. "@types/nanoid": "2.1.0",
  21. "@types/react": "16.9.19",
  22. "@types/react-dom": "16.9.5",
  23. "eslint": "6.8.0",
  24. "eslint-config-prettier": "6.10.0",
  25. "eslint-plugin-prettier": "3.1.2",
  26. "husky": "4.2.1",
  27. "lint-staged": "10.0.7",
  28. "node-sass": "4.13.1",
  29. "prettier": "1.19.1",
  30. "rewire": "4.0.1",
  31. "typescript": "3.7.5"
  32. },
  33. "eslintConfig": {
  34. "extends": [
  35. "prettier",
  36. "react-app"
  37. ],
  38. "plugins": [
  39. "prettier"
  40. ],
  41. "rules": {
  42. "curly": "warn",
  43. "no-console": [
  44. "warn",
  45. {
  46. "allow": [
  47. "warn",
  48. "error",
  49. "info"
  50. ]
  51. }
  52. ],
  53. "no-else-return": "warn",
  54. "no-useless-return": "warn",
  55. "prefer-const": [
  56. "warn",
  57. {
  58. "destructuring": "all"
  59. }
  60. ],
  61. "prefer-template": "warn",
  62. "prettier/prettier": "warn"
  63. }
  64. },
  65. "homepage": "https://excalidraw.com",
  66. "husky": {
  67. "hooks": {
  68. "pre-commit": "lint-staged"
  69. }
  70. },
  71. "main": "src/index.js",
  72. "name": "excalidraw",
  73. "scripts": {
  74. "build": "react-scripts build",
  75. "build-node": "./scripts/build-node.js",
  76. "eject": "react-scripts eject",
  77. "fix": "npm run fix:other && npm run fix:code",
  78. "fix:code": "npm run test:code -- --fix",
  79. "fix:other": "npm run prettier -- --write",
  80. "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
  81. "start": "react-scripts start",
  82. "test": "npm run test:app",
  83. "test:app": "react-scripts test --env=jsdom --passWithNoTests",
  84. "test:code": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
  85. "test:other": "npm run prettier -- --list-different"
  86. },
  87. "version": "1.0.0",
  88. "license": "MIT",
  89. "repository": {
  90. "type": "git",
  91. "url": "https://github.com/excalidraw/excalidraw.git"
  92. }
  93. }