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