|
2 | 2 | "package": { |
3 | 3 | "dependencies": { |
4 | 4 | "@cypress/code-coverage": "3.9.12", |
5 | | - "@nimblehq/eslint-config-nimble": "2.2.1", |
| 5 | + "@nimblehq/eslint-config-nimble-react": "^1.0.0", |
| 6 | + "@nimblehq/stylelint-config-nimble": "^1.0.0", |
6 | 7 | "@testing-library/cypress": "8.0.2", |
7 | | - "@testing-library/jest-dom": "5.11.4", |
8 | | - "@testing-library/react": "12.1.4", |
9 | | - "@testing-library/user-event": "13.5.0", |
| 8 | + "@testing-library/jest-dom": "5.16.4", |
| 9 | + "@testing-library/react": "13.1.1", |
| 10 | + "@testing-library/user-event": "14.1.1", |
10 | 11 | "@types/jest": "27.4.1", |
11 | 12 | "@types/node": "17.0.21", |
12 | 13 | "@types/react": "17.0.40", |
13 | 14 | "@types/react-dom": "17.0.13", |
14 | | - "@typescript-eslint/eslint-plugin": "5.15.0", |
15 | | - "@typescript-eslint/parser": "5.15.0", |
16 | 15 | "axios": "0.21.1", |
17 | 16 | "cypress": "9.5.2", |
18 | 17 | "cypress-react-selector": "2.3.16", |
19 | 18 | "eslint": "8.11.0", |
20 | | - "eslint-config-prettier": "8.5.0", |
21 | | - "eslint-import-resolver-typescript": "2.5.0", |
22 | | - "eslint-plugin-cypress": "2.12.1", |
23 | | - "eslint-plugin-import": "2.25.4", |
24 | | - "eslint-plugin-jest": "26.1.1", |
25 | | - "eslint-plugin-jsx-a11y": "6.5.1", |
26 | | - "eslint-plugin-prettier": "4.0.0", |
27 | | - "eslint-plugin-react": "7.29.4", |
28 | | - "eslint-plugin-react-hooks": "4.3.0", |
29 | 19 | "i18next": "21.6.14", |
30 | 20 | "i18next-browser-languagedetector": "6.1.3", |
31 | 21 | "i18next-http-backend": "1.4.0", |
32 | | - "node-sass": "7.0.1", |
33 | 22 | "prettier": "2.6.0", |
34 | 23 | "react-i18next": "11.16.1", |
| 24 | + "react-router-dom": "6.3.0", |
| 25 | + "sass": "1.49.11", |
35 | 26 | "stylelint": "14.6.0", |
36 | | - "stylelint-config-property-sort-order-smacss": "9.0.0", |
37 | | - "stylelint-config-sass-guidelines": "9.0.1", |
38 | | - "stylelint-order": "5.0.0", |
39 | | - "stylelint-scss": "4.2.0", |
40 | 27 | "typescript": "4.6.2", |
41 | 28 | "web-vitals": "2.1.4" |
42 | 29 | }, |
43 | 30 | "scripts": { |
44 | 31 | "start": "react-scripts -r @cypress/instrument-cra start", |
45 | | - "test:coverage": "react-scripts test --coverage --watchAll=false && yarn cypress:run && node ./scripts/coverage-merge.js && nyc report", |
| 32 | + "test:coverage": "react-scripts test --coverage --watchAll=false && npm run cypress:run && node ./scripts/coverage-merge.js && nyc report", |
| 33 | + "test:merge-coverage": "node ./scripts/coverage-merge.js", |
46 | 34 | "lint": "eslint ./src ./cypress --ext .ts,.tsx", |
47 | 35 | "lint:fix": "eslint ./src ./cypress --ext .ts,.tsx --fix", |
48 | 36 | "stylelint": "stylelint '**/*.scss'", |
49 | 37 | "stylelint:fix": "stylelint '**/*.scss' --fix", |
50 | | - "codebase:lint": "yarn lint && yarn stylelint", |
51 | | - "codebase:fix": "yarn lint:fix && yarn stylelint:fix", |
| 38 | + "codebase:lint": "npm run lint && npm run stylelint", |
| 39 | + "codebase:fix": "npm run lint:fix && npm run stylelint:fix", |
| 40 | + "cypress": "start-server-and-test start 3000 cypress:run", |
52 | 41 | "cypress:run": "cypress run", |
53 | 42 | "cypress:open": "cypress open" |
54 | 43 | }, |
55 | 44 | "jest": { |
56 | | - "collectCoverageFrom": ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"], |
57 | | - "coverageReporters": ["json"] |
| 45 | + "collectCoverageFrom": [ |
| 46 | + "src/**/*.{js,jsx,ts,tsx}", |
| 47 | + "!src/**/*.d.ts" |
| 48 | + ], |
| 49 | + "coverageReporters": [ |
| 50 | + "json" |
| 51 | + ] |
58 | 52 | }, |
59 | 53 | "nyc": { |
60 | 54 | "report-dir": "coverage/cypress", |
61 | | - "exclude": ["src/reportWebVitals.ts"], |
| 55 | + "exclude": [ |
| 56 | + "src/reportWebVitals.ts" |
| 57 | + ], |
62 | 58 | "excludeAfterRemap": true |
63 | 59 | }, |
64 | 60 | "devDependencies": { |
65 | | - "@cypress/instrument-cra": "1.4.0" |
| 61 | + "@cypress/instrument-cra": "1.4.0", |
| 62 | + "danger": "10.9.0", |
| 63 | + "danger-plugin-code-coverage": "1.1.9", |
| 64 | + "danger-plugin-istanbul-coverage": "1.6.2", |
| 65 | + "danger-plugin-jest-codecov": "0.0.8", |
| 66 | + "start-server-and-test": "1.14.0" |
66 | 67 | } |
67 | 68 | } |
68 | 69 | } |
0 commit comments