|
4 | 4 | "private": true,
|
5 | 5 | "dependencies": {
|
6 | 6 | "emotion": "^9.0.2",
|
| 7 | + "prop-types": "^15.6.1", |
7 | 8 | "react": "^16.2.0",
|
8 | 9 | "react-dom": "^16.2.0",
|
9 | 10 | "react-router-dom": "^4.2.2"
|
10 | 11 | },
|
11 | 12 | "devDependencies": {
|
| 13 | + "babel-eslint": "^8.2.2", |
| 14 | + "eslint": "^4.9.0", |
| 15 | + "eslint-config-airbnb": "^16.1.0", |
| 16 | + "eslint-config-prettier": "^2.9.0", |
| 17 | + "eslint-plugin-import": "^2.7.0", |
| 18 | + "eslint-plugin-jsx-a11y": "^6.0.2", |
| 19 | + "eslint-plugin-prettier": "^2.6.0", |
| 20 | + "eslint-plugin-react": "^7.4.0", |
| 21 | + "jest-junit": "^3.6.0", |
| 22 | + "prettier": "^1.11.1", |
12 | 23 | "react-scripts": "1.1.1"
|
13 | 24 | },
|
14 | 25 | "scripts": {
|
| 26 | + "prettier": "prettier --write 'src/**/*.js'", |
15 | 27 | "start": "react-scripts start",
|
16 | 28 | "build": "react-scripts build",
|
17 |
| - "test": "react-scripts test --env=jsdom", |
| 29 | + "test": "yarn test:lint && yarn test:unit", |
| 30 | + "test:unit": "react-scripts test --env=jsdom", |
| 31 | + "test:unit:ci": "CI=true JEST_JUNIT_OUTPUT=reports/jest-junit.xml react-scripts test --testResultsProcessor ./node_modules/jest-junit --env=jsdom", |
| 32 | + "test:lint": "eslint ./src --max-warnings=0", |
| 33 | + "test:lint:ci": "eslint ./src --max-warnings=0 --format junit -o reports/eslint-junit.xml", |
18 | 34 | "eject": "react-scripts eject"
|
19 | 35 | }
|
20 | 36 | }
|
0 commit comments