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 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "sonar-docs",
  3. "version": "0.0.0",
  4. "license": "LGPL-3.0",
  5. "private": true,
  6. "dependencies": {
  7. "@andrew-codes/gatsby-plugin-elasticlunr-search": "1.0.4",
  8. "classnames": "2.3.1",
  9. "gatsby": "2.19.49",
  10. "gatsby-plugin-layout": "1.1.24",
  11. "gatsby-plugin-polyfill-io": "1.1.0",
  12. "gatsby-plugin-react-helmet": "3.1.24",
  13. "gatsby-plugin-typescript": "2.2.5",
  14. "gatsby-plugin-typography": "2.3.25",
  15. "gatsby-remark-custom-blocks": "2.1.27",
  16. "gatsby-source-filesystem": "2.1.57",
  17. "gatsby-transformer-remark": "2.6.59",
  18. "hast-util-select": "4.0.0",
  19. "lodash": "4.17.21",
  20. "lunr": "2.3.9",
  21. "react": "16.13.0",
  22. "react-dom": "16.13.0",
  23. "react-helmet": "5.2.1",
  24. "react-typography": "0.16.20",
  25. "rehype-react": "6.1.0",
  26. "typography": "0.16.21"
  27. },
  28. "devDependencies": {
  29. "@swc/core": "1.2.163",
  30. "@swc/jest": "0.2.20",
  31. "@types/classnames": "2.3.0",
  32. "@types/enzyme": "3.10.5",
  33. "@types/jest": "27.4.1",
  34. "@types/lodash": "4.14.149",
  35. "@types/lunr": "2.3.4",
  36. "@types/react": "16.8.23",
  37. "@types/react-dom": "16.8.4",
  38. "@types/react-helmet": "5.0.15",
  39. "@types/rehype-react": "4.0.0",
  40. "@typescript-eslint/eslint-plugin": "4.33.0",
  41. "@typescript-eslint/parser": "4.33.0",
  42. "enzyme": "3.11.0",
  43. "enzyme-adapter-react-16": "1.15.6",
  44. "enzyme-to-json": "3.6.2",
  45. "eslint": "7.17.0",
  46. "eslint-config-sonarqube": "1.0.1",
  47. "eslint-plugin-import": "2.25.4",
  48. "eslint-plugin-jest": "24.1.0",
  49. "eslint-plugin-jsx-a11y": "6.5.1",
  50. "eslint-plugin-promise": "4.2.1",
  51. "eslint-plugin-react": "7.29.4",
  52. "eslint-plugin-react-hooks": "4.4.0",
  53. "fs-extra": "7.0.1",
  54. "glob-promise": "4.2.2",
  55. "jest": "27.5.1",
  56. "jest-fetch-mock": "2.1.2",
  57. "prettier": "1.19.1",
  58. "react-test-renderer": "16.8.5",
  59. "remark": "11.0.2",
  60. "typescript": "4.6.3",
  61. "unist-util-visit": "2.0.2"
  62. },
  63. "scripts": {
  64. "build": "yarn install --immutable && yarn gatsby clean && yarn gatsby build --prefix-paths",
  65. "develop": "gatsby develop",
  66. "graphql-types": "gql-gen --url http://localhost:8000/___graphql --template typescript --out ./src/@types/graphql-types.d.ts",
  67. "test": "jest",
  68. "format": "prettier --write --list-different \"src/**/*.{js,ts,tsx,css}\"",
  69. "format-check": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"",
  70. "lint": "eslint --ext js,ts,tsx --quiet src",
  71. "ts-check": "tsc --noEmit",
  72. "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
  73. "validate-ci": "yarn install --immutable && yarn test --ci",
  74. "check-ci": "yarn install --immutable && yarn ts-check && yarn format-check"
  75. },
  76. "prettier": {
  77. "jsxBracketSameLine": true,
  78. "printWidth": 100,
  79. "singleQuote": true
  80. },
  81. "jest": {
  82. "moduleFileExtensions": [
  83. "ts",
  84. "tsx",
  85. "js",
  86. "json"
  87. ],
  88. "moduleNameMapper": {
  89. "^.+\\.(hbs|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
  90. "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
  91. },
  92. "setupFiles": [
  93. "<rootDir>/config/jest/SetupEnzyme.js",
  94. "<rootDir>/config/jest/SetupJest.ts"
  95. ],
  96. "snapshotSerializers": [
  97. "enzyme-to-json/serializer"
  98. ],
  99. "testPathIgnorePatterns": [
  100. "<rootDir>/node_modules",
  101. "<rootDir>/config",
  102. "<rootDir>/.cache"
  103. ],
  104. "testEnvironment": "jsdom",
  105. "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
  106. "transform": {
  107. "^.+\\.(t|j)sx?$": [
  108. "@swc/jest",
  109. {
  110. "jsc": {
  111. "target": "es2018"
  112. }
  113. }
  114. ]
  115. }
  116. },
  117. "packageManager": "yarn@3.2.0"
  118. }