This repository has been archived by the owner on Nov 3, 2020. It is now read-only.
/
package.json
144 lines (144 loc) · 4.47 KB
/
package.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "bmd",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "is-ci \"test:ci\" \"test:watch\"",
"test:watch": "react-scripts test",
"test:ci": "CI=true tsc && react-scripts test --maxWorkers 2 --env=jsdom --coverage && yarn test:e2e:ci",
"test:coverage": "react-scripts test --coverage --watchAll=false",
"test:update": "react-scripts test -u --watchAll=false",
"test:debug": "react-scripts --inspect-brk test --runInBand --no-cache",
"cypress:run": "cypress run --browser chrome",
"cypress:open": "cypress open",
"test:e2e": "is-ci \"test:e2e:ci\" \"test:e2e:watch\"",
"pretest:e2e:ci": "yarn build",
"test:e2e:ci": "start-server-and-test start http://localhost:3000 cypress:run",
"test:e2e:watch": "start-server-and-test start http://localhost:3000 cypress:open",
"stylelint:run": "stylelint 'src/**/*.{js,jsx,ts,tsx}' && stylelint 'src/**/*.css' --config .stylelintrc-css.js",
"lint": "tsc --noEmit && eslint '*/**/*.{js,jsx,ts,tsx}' --quiet && yarn stylelint:run",
"lint:fix": "tsc --noEmit && eslint '*/**/*.{js,jsx,ts,tsx}' --fix --quiet && yarn stylelint:run --fix",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write"
},
"husky": {
"hooks": {
"pre-commit": "tsc && lint-staged"
}
},
"lint-staged": {
"*.+(js|jsx|ts|tsx)": [
"stylelint",
"eslint --quiet --fix",
"git add"
],
"*.css": [
"stylelint --config .stylelintrc-css.js --fix",
"git add"
],
"*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)": [
"prettier --write",
"git add"
]
},
"eslintConfig": {
"extends": "react-app"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/config/*",
"!src/**/*.d.ts",
"!src/index.tsx",
"!src/contexts/ballotContext.ts",
"!src/serviceWorker.ts"
],
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 100,
"lines": 100,
"functions": 100
}
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@types/fetch-mock": "^7.3.1",
"@types/jest": "24.0.18",
"@types/lodash.camelcase": "^4.3.6",
"@types/node": "12.7.11",
"@types/pluralize": "^0.0.29",
"@types/react": "^16.9.5",
"@types/react-dom": "^16.9.1",
"@types/react-modal": "^3.8.3",
"@types/react-router-dom": "^5.1.0",
"@types/styled-components": "^4.1.19",
"@votingworks/ballot-encoder": "^1.1.0",
"@votingworks/qrcode.react": "^1.0.0",
"abortcontroller-polyfill": "^1.3.0",
"base64-js": "^1.3.1",
"fetch-mock": "^7.4.0",
"history": "^4.10.1",
"http-proxy-middleware": "^0.20.0",
"lodash.camelcase": "^4.3.0",
"normalize.css": "^8.0.1",
"pluralize": "^8.0.0",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-gamepad": "^1.0.3",
"react-idle-timer": "^4.2.9",
"react-modal": "^3.10.1",
"react-router-dom": "^5.1.2",
"react-scripts": "3.0.1",
"styled-components": "^4.4.0",
"typescript": "3.6.3",
"use-interval": "^1.1.0"
},
"devDependencies": {
"@testing-library/cypress": "^5.0.1",
"@testing-library/react": "^9.3.0",
"@types/base64-js": "^1.2.5",
"@typescript-eslint/eslint-plugin": "1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"cypress": "^3.4.1",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-cypress": "^2.7.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"husky": "^3.0.8",
"is-ci-cli": "^1.1.1",
"jest-date-mock": "^1.0.7",
"jest-fetch-mock": "^2.1.2",
"jest-styled-components": "^6.3.3",
"lint-staged": "^9.4.1",
"prettier": "^1.18.2",
"start-server-and-test": "^1.10.4",
"stylelint": "^11.0.0",
"stylelint-config-palantir": "^4.0.0",
"stylelint-config-prettier": "^6.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.8.0"
},
"engines": {
"node": ">= 12"
}
}