package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "name": "vite-ts-react",
  3. "version": "0.0.0",
  4. "scripts": {
  5. "dev": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite",
  6. "build": "tsc && cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build",
  7. "package": "rimraf lib && set NODE_ENV=production&& rollup -c rollup.config.js",
  8. "serve": "vite preview",
  9. "start:qa": "vite -m qa"
  10. },
  11. "prettier": {
  12. "semi": false,
  13. "singleQuote": true,
  14. "jsxSingleQuote": true,
  15. "parser": "typescript",
  16. "quoteProps": "consistent",
  17. "trailingComma": "none",
  18. "tabWidth": 2,
  19. "printWidth": 100,
  20. "overrides": [
  21. {
  22. "files": ".prettierrc",
  23. "options": {
  24. "parser": "typescript"
  25. }
  26. }
  27. ],
  28. "settings": {
  29. "react": {
  30. "version": "detect"
  31. }
  32. },
  33. "endOfLine": "auto"
  34. },
  35. "husky": {
  36. "hooks": {
  37. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
  38. "pre-commit": "pretty-quick --staged"
  39. }
  40. },
  41. "eslintConfig": {
  42. "extends": [
  43. "react-app"
  44. ],
  45. "rules": {
  46. "camelcase": 0,
  47. "no-use-before-define": "off",
  48. "@typescript-eslint/no-use-before-define": [
  49. "error"
  50. ],
  51. "prettier/prettier": [
  52. "error",
  53. {
  54. "endOfLine": "auto"
  55. }
  56. ]
  57. }
  58. },
  59. "postcss": {
  60. "plugins": {
  61. "autoprefixer": {}
  62. }
  63. },
  64. "dependencies": {
  65. "@loadable/component": "^5.15.0",
  66. "@nteract/directory-listing": "^2.1.0",
  67. "@nteract/markdown": "^4.6.2",
  68. "@nteract/notebook-preview": "^11.0.4-alpha.0",
  69. "@nteract/presentational-components": "^3.4.11",
  70. "@nteract/transform-vega": "^7.0.0",
  71. "@nteract/transforms": "^5.0.4-alpha.0",
  72. "antd": "^4.16.12",
  73. "axios": "^0.21.1",
  74. "build": "^0.1.4",
  75. "classnames": "^2.3.1",
  76. "d3-dsv": "^3.0.1",
  77. "jquery": "^3.6.0",
  78. "js-base64": "^3.6.1",
  79. "lodash-es": "^4.17.21",
  80. "next": "^11.1.2",
  81. "nprogress": "^0.2.0",
  82. "react": "^17.0.2",
  83. "react-dom": "^17.0.2",
  84. "react-router": "^5.2.0",
  85. "react-router-config": "^5.1.1",
  86. "react-router-dom": "^5.2.0"
  87. },
  88. "devDependencies": {
  89. "@rollup/plugin-dynamic-import-vars": "^1.4.0",
  90. "@rollup/plugin-json": "^4.1.0",
  91. "@rollup/plugin-node-resolve": "^13.0.4",
  92. "@types/axios": "^0.14.0",
  93. "@types/d3-dsv": "^3.0.0",
  94. "@types/lodash": "^4.14.172",
  95. "@types/lodash-es": "^4.17.5",
  96. "@types/next": "^9.0.0",
  97. "@types/node": "^16.6.2",
  98. "@types/nprogress": "^0.2.0",
  99. "@types/react": "^17.0.0",
  100. "@types/react-dom": "^17.0.0",
  101. "@types/react-router-dom": "^5.1.8",
  102. "@types/styled-components": "^5.1.14",
  103. "@typescript-eslint/eslint-plugin": "^4.29.2",
  104. "@typescript-eslint/parser": "^4.29.2",
  105. "@vitejs/plugin-legacy": "^1.5.1",
  106. "@vitejs/plugin-react-refresh": "^1.3.1",
  107. "autoprefixer": "^10.3.4",
  108. "cross-env": "^7.0.3",
  109. "eslint": "^7.32.0",
  110. "eslint-config-alloy": "^4.2.0",
  111. "eslint-plugin-react": "^7.24.0",
  112. "husky": "^4.3.8",
  113. "less": "^4.1.1",
  114. "lint-staged": "^11.1.2",
  115. "postcss": "^8.3.6",
  116. "prettier": "^2.3.2",
  117. "rimraf": "^3.0.2",
  118. "rollup-plugin-babel": "^4.4.0",
  119. "rollup-plugin-commonjs": "^10.1.0",
  120. "rollup-plugin-peer-deps-external": "^2.2.4",
  121. "rollup-plugin-postcss": "^4.0.1",
  122. "rollup-plugin-stylelint": "^1.0.0",
  123. "rollup-plugin-terser": "^7.0.2",
  124. "rollup-plugin-tslint": "^0.2.2",
  125. "rollup-plugin-typescript2": "^0.30.0",
  126. "rollup-plugin-visualizer": "^5.5.2",
  127. "sass": "^1.38.0",
  128. "typescript": "^4.3.5",
  129. "vite": "^2.5.4",
  130. "vite-plugin-imp": "^2.0.7"
  131. }
  132. }