-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
54 lines (54 loc) · 1.68 KB
/
template.json
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
{
"package": {
"scripts": {
"tests:pre-commit": "CI=true react-scripts test --findRelatedTests",
"cy:open": "cypress open",
"cy:run": "cypress run",
"eslint": "eslint 'src/**/*.+(js|ts|tsx|test.tsx)' 'cypress/**/*.+(js|spec.js)'",
"eslint:fix": "eslint --fix 'src/**/*.+(js|ts|tsx|test.tsx)' 'cypress/**/*.+(js|spec.js)'",
"prettier": "prettier --check '**/*.{scss,tsx,ts,js}'",
"prettier:fix": "prettier --write '**/*.{scss,tsx,ts,js}'",
"stylelint": "stylelint '**/*.?(s)css'",
"stylelint:fix": "stylelint --fix '**/*.?(s)css'"
},
"lint-staged": {
"**/*.+(js|ts|tsx|test.tsx|spec.tsx)": [
"npm run tests:pre-commit",
"npm run eslint:fix",
"npm run prettier:fix"
],
"**/*.?(s)css": [
"npm run stylelint:fix"
]
},
"engines": {
"npm": ">=6.0.0",
"yarn": "please-use-npm",
"node": ">= 12.5.0"
},
"dependencies": {
"react-router-dom": "^6.2.2",
"typescript": "^4.4.2",
"web-vitals": "^2.1.0",
"sass": "^1.49.9"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/jest-axe": "^3.5.3",
"@types/node": "^16.7.13",
"@types/react": "^17.0.20",
"@types/react-dom": "^17.0.9",
"cypress": "^9.5.1",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"jest-axe": "^6.0.0",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"stylelint": "^14.5.3",
"stylelint-config-prettier": "^9.0.3"
}
}
}