package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "ray-dashboard-client",
  3. "version": "1.0.0",
  4. "private": true,
  5. "dependencies": {
  6. "@material-ui/core": "4.11.0",
  7. "@material-ui/icons": "^4.9.1",
  8. "@material-ui/lab": "4.0.0-alpha.56",
  9. "@material-ui/pickers": "^3.2.10",
  10. "@reduxjs/toolkit": "^1.3.1",
  11. "@types/classnames": "^2.2.10",
  12. "@types/jest": "25.1.4",
  13. "@types/lodash": "^4.14.161",
  14. "@types/lowlight": "^0.0.1",
  15. "@types/node": "13.9.5",
  16. "@types/numeral": "^0.0.26",
  17. "@types/react": "16.9.26",
  18. "@types/react-dom": "16.9.5",
  19. "@types/react-redux": "^7.1.7",
  20. "@types/react-router-dom": "^5.1.3",
  21. "@types/react-window": "^1.8.2",
  22. "axios": "^0.21.1",
  23. "classnames": "^2.2.6",
  24. "dayjs": "^1.9.4",
  25. "lodash": "^4.17.20",
  26. "lowlight": "^1.14.0",
  27. "numeral": "^2.0.6",
  28. "react": "^16.13.1",
  29. "react-dom": "^16.13.1",
  30. "react-redux": "^7.2.0",
  31. "react-router-dom": "^5.1.2",
  32. "react-scripts": "^4.0.3",
  33. "react-window": "^1.8.5",
  34. "typeface-roboto": "0.0.75",
  35. "typescript": "3.8.3",
  36. "use-debounce": "^3.4.3"
  37. },
  38. "devDependencies": {
  39. "eslint-plugin-import": "2.20.1",
  40. "eslint-plugin-prefer-arrow": "1.1.7",
  41. "prettier": "2.3.0"
  42. },
  43. "scripts": {
  44. "start": "react-scripts start",
  45. "build": "react-scripts build",
  46. "test": "react-scripts test",
  47. "eject": "react-scripts eject",
  48. "lint": "npm run eslint && npm run prettier",
  49. "lint-fix": "npm run prettier -- --write && npm run eslint -- --fix",
  50. "prettier": "prettier -c src",
  51. "eslint": "eslint \"src/**\""
  52. },
  53. "eslintConfig": {
  54. "ignorePatterns": [
  55. "*.svg",
  56. "*.css"
  57. ],
  58. "extends": [
  59. "plugin:import/warnings",
  60. "react-app"
  61. ],
  62. "plugins": [
  63. "prefer-arrow"
  64. ],
  65. "rules": {
  66. "@typescript-eslint/consistent-type-definitions": [
  67. "error",
  68. "type"
  69. ],
  70. "comma-dangle": [
  71. "warn",
  72. "always-multiline"
  73. ],
  74. "curly": [
  75. "warn",
  76. "all"
  77. ],
  78. "eqeqeq": [
  79. "error",
  80. "always"
  81. ],
  82. "import/order": [
  83. "warn",
  84. {
  85. "alphabetize": {
  86. "order": "asc",
  87. "caseInsensitive": true
  88. }
  89. }
  90. ],
  91. "no-var": "error",
  92. "prefer-arrow/prefer-arrow-functions": [
  93. "warn",
  94. {
  95. "disallowPrototype": true,
  96. "singleReturnOnly": false,
  97. "classPropertiesAllowed": false
  98. }
  99. ],
  100. "prefer-const": "error",
  101. "react/jsx-fragments": [
  102. "warn",
  103. "element"
  104. ],
  105. "sort-imports": [
  106. "warn",
  107. {
  108. "ignoreCase": true,
  109. "ignoreDeclarationSort": true
  110. }
  111. ]
  112. }
  113. },
  114. "prettier": {
  115. "trailingComma": "all"
  116. },
  117. "browserslist": {
  118. "production": [
  119. ">0.2%",
  120. "not dead",
  121. "not op_mini all"
  122. ],
  123. "development": [
  124. "last 1 chrome version",
  125. "last 1 firefox version",
  126. "last 1 safari version"
  127. ]
  128. },
  129. "proxy": "http://localhost:8265"
  130. }