1
+ {
2
+ "package" : {
3
+ "description" : " " ,
4
+ "keywords" : [],
5
+ "license" : " MIT" ,
6
+ "private" : true ,
7
+ "author" : " " ,
8
+ "dependencies" : {
9
+ "react" : " ^19.1.0" ,
10
+ "react-dom" : " ^19.1.0" ,
11
+ "react-scripts" : " 5.0.1"
12
+ },
13
+ "scripts" : {
14
+ "start" : " env-cmd -e development craco start" ,
15
+ "build" : " yarn build-prod" ,
16
+ "test" : " craco test" ,
17
+ "build:analyze" : " cross-env BUILD_ANALYZER=true yarn build-prod" ,
18
+ "build-test" : " env-cmd -e test craco build" ,
19
+ "build-prod" : " env-cmd -e production craco build" ,
20
+ "commit" : " git-cz" ,
21
+ "changelog" : " standard-version -n"
22
+ },
23
+ "eslintConfig" : {
24
+ "extends" : [
25
+ " react-app" ,
26
+ " react-app/jest" ,
27
+ " ./node_modules/@umijs/fabric/dist/eslint"
28
+ ],
29
+ "rules" : {
30
+ "@typescript-eslint/consistent-type-definitions" : 0 ,
31
+ "@typescript-eslint/no-invalid-this" : 0 ,
32
+ "@typescript-eslint/consistent-type-imports" : 0 ,
33
+ "@typescript-eslint/no-shadow" : 0 ,
34
+ "@typescript-eslint/no-unused-vars" : 1 ,
35
+ "no-underscore-dangle" : 0 ,
36
+ "import/no-extraneous-dependencies" : 0 ,
37
+ "import/no-dynamic-require" : 0 ,
38
+ "react/sort-comp" : 0 ,
39
+ "jsx-a11y/aria-role" : 0 ,
40
+ "jsx-a11y/alt-text" : 0 ,
41
+ "jsx-a11y/anchor-has-content" : 0 ,
42
+ "jsx-a11y/control-has-associated-label" : 0 ,
43
+ "no-param-reassign" : 0 ,
44
+ "prefer-object-spread" : 0 ,
45
+ "consistent-return" : 0 ,
46
+ "react/button-has-type" : 0 ,
47
+ "react/react-in-jsx-scope" : 0 ,
48
+ "prefer-destructuring" : 0 ,
49
+ "array-callback-return" : 0 ,
50
+ "no-plusplus" : 0 ,
51
+ "no-nested-ternary" : 0 ,
52
+ "no-unused-expressions" : 0 ,
53
+ "react/no-unknown-property" : [
54
+ " error" ,
55
+ {
56
+ "ignore" : [
57
+ " styleName"
58
+ ]
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "browserslist" : {
64
+ "production" : [
65
+ " >0.2%" ,
66
+ " not dead" ,
67
+ " not op_mini all"
68
+ ],
69
+ "development" : [
70
+ " last 1 chrome version" ,
71
+ " last 1 firefox version" ,
72
+ " last 1 safari version"
73
+ ]
74
+ },
75
+ "yxpm" : {
76
+ "output" : [
77
+ " dist"
78
+ ]
79
+ },
80
+ "devDependencies" : {
81
+ "@babel/plugin-proposal-class-properties" : " ^7.10.4" ,
82
+ "@babel/plugin-proposal-decorators" : " ^7.10.5" ,
83
+ "@commitlint/cli" : " 9.1.2" ,
84
+ "@commitlint/config-conventional" : " 9.1.2" ,
85
+ "@craco/craco" : " ^6.0.0" ,
86
+ "@testing-library/jest-dom" : " ^5.14.1" ,
87
+ "@testing-library/react" : " ^13.0.0" ,
88
+ "@testing-library/user-event" : " ^13.2.1" ,
89
+ "@types/css-modules" : " ^1.0.2" ,
90
+ "@types/jest" : " ^27.0.1" ,
91
+ "@types/node" : " ^16.7.13" ,
92
+ "@types/react" : " ^18.0.0" ,
93
+ "@types/react-css-modules" : " ^4.6.2" ,
94
+ "@types/react-dom" : " ^18.0.0" ,
95
+ "@umijs/fabric" : " ^2.5.13" ,
96
+ "babel-plugin-import" : " ^1.13.0" ,
97
+ "babel-plugin-module-resolver" : " ^4.1.0" ,
98
+ "babel-plugin-react-css-modules" : " ^5.2.6" ,
99
+ "circular-dependency-plugin" : " ^5.2.0" ,
100
+ "commitizen" : " ^4.2.1" ,
101
+ "craco-less" : " ^1.17.0" ,
102
+ "craco-plugin-scoped-css" : " ^1.1.1" ,
103
+ "craco-scoped-less" : " ^1.0.3" ,
104
+ "cross-env" : " ^7.0.2" ,
105
+ "cz-conventional-changelog" : " ^3.3.0" ,
106
+ "env-cmd" : " ^10.1.0" ,
107
+ "fs-extra" : " ^10.0.1" ,
108
+ "generic-names" : " ^3.0.0" ,
109
+ "http-proxy-middleware" : " ^1.0.5" ,
110
+ "lint-staged" : " ^11.0.0" ,
111
+ "postcss-less" : " ^3.1.4" ,
112
+ "postcss-scss" : " ^3.0.0" ,
113
+ "prettier" : " ^2.3.2" ,
114
+ "standard-version" : " ^9.3.1" ,
115
+ "typescript" : " ^4.4.2" ,
116
+ "typescript-plugin-css-modules" : " ^5.0.1" ,
117
+ "vconsole-webpack-plugin" : " ^1.5.2" ,
118
+ "web-vitals" : " ^2.1.0" ,
119
+ "webpack-bundle-analyzer" : " ^3.9.0" ,
120
+ "webpackbar" : " ^5.0.0-3" ,
121
+ "yorkie" : " ^2.0.0"
122
+ },
123
+ "gitHooks" : {
124
+ "pre-commit" : " lint-staged --allow-empty" ,
125
+ "commit-msg" : " commitlint -E GIT_PARAMS"
126
+ },
127
+ "eslintIgnore" : [
128
+ " src/setupProxy.js"
129
+ ],
130
+ "lint-staged" : {
131
+ "**/*.{js,jsx,json,css,scss,less,html,md}" : [
132
+ " prettier --write"
133
+ ],
134
+ "src/**/*.{ts,tsx}" : [
135
+ " prettier --parser=typescript --write"
136
+ ],
137
+ "src/**/*.{ts,tsx,js,jsx}" : [
138
+ " eslint --fix --max-warnings 0"
139
+ ]
140
+ },
141
+ "prettier" : {
142
+ "arrowParens" : " avoid" ,
143
+ "trailingComma" : " es5" ,
144
+ "singleQuote" : true ,
145
+ "semi" : true ,
146
+ "tabWidth" : 2
147
+ },
148
+ "config" : {
149
+ "commitizen" : {
150
+ "path" : " ./node_modules/cz-conventional-changelog"
151
+ }
152
+ },
153
+ "antdTheme" : {}
154
+ }
155
+ }
0 commit comments