|
1 | 1 | { |
2 | 2 | "name": "react-cool-starter", |
3 | | - "version": "2.4.0", |
4 | | - "description": "A starter boilerplate for an universal web application with the best development experience and best practices.", |
| 3 | + "version": "2.4.1", |
| 4 | + "description": |
| 5 | + "A starter boilerplate for an universal web application with the best development experience and best practices.", |
5 | 6 | "main": "index.js", |
6 | 7 | "engines": { |
7 | 8 | "node": ">=6.0", |
|
73 | 74 | } |
74 | 75 | }, |
75 | 76 | "build": { |
76 | | - "command": "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js", |
| 77 | + "command": |
| 78 | + "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js", |
77 | 79 | "env": { |
78 | 80 | "NODE_ENV": "production" |
79 | 81 | } |
80 | 82 | }, |
81 | 83 | "analyze": { |
82 | | - "command": "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js", |
| 84 | + "command": |
| 85 | + "webpack --progress --hide-modules --config ./tools/webpack/config.babel.js", |
83 | 86 | "env": { |
84 | 87 | "NODE_ENV": "analyze" |
85 | 88 | } |
|
124 | 127 | "@babel/preset-stage-0", |
125 | 128 | "@babel/preset-flow" |
126 | 129 | ], |
127 | | - "plugins": [ |
128 | | - "loadable-components/babel", |
129 | | - "dynamic-import-node", |
130 | | - "lodash" |
131 | | - ], |
| 130 | + "plugins": ["loadable-components/babel", "dynamic-import-node", "lodash"], |
132 | 131 | "env": { |
133 | 132 | "production": { |
134 | | - "plugins": [ |
135 | | - "transform-remove-console" |
136 | | - ] |
| 133 | + "plugins": ["transform-remove-console"] |
137 | 134 | } |
138 | 135 | } |
139 | 136 | }, |
|
145 | 142 | "prettier", |
146 | 143 | "prettier/react" |
147 | 144 | ], |
148 | | - "plugins": [ |
149 | | - "lodash-fp", |
150 | | - "react", |
151 | | - "prettier" |
152 | | - ], |
| 145 | + "plugins": ["lodash-fp", "react", "prettier"], |
153 | 146 | "settings": { |
154 | 147 | "import/resolver": { |
155 | 148 | "webpack": { |
|
171 | 164 | "react/jsx-filename-extension": [ |
172 | 165 | "error", |
173 | 166 | { |
174 | | - "extensions": [ |
175 | | - ".js", |
176 | | - ".jsx" |
177 | | - ] |
| 167 | + "extensions": [".js", ".jsx"] |
178 | 168 | } |
179 | 169 | ], |
180 | 170 | "import/no-extraneous-dependencies": [ |
|
186 | 176 | "jsx-a11y/anchor-is-valid": [ |
187 | 177 | "error", |
188 | 178 | { |
189 | | - "specialLink": [ |
190 | | - "to" |
191 | | - ] |
| 179 | + "specialLink": ["to"] |
192 | 180 | } |
193 | 181 | ], |
194 | 182 | "lodash-fp/use-fp": "off", |
|
206 | 194 | "__DEV__": true |
207 | 195 | } |
208 | 196 | }, |
209 | | - "eslintIgnore": [ |
210 | | - "tools/flow" |
211 | | - ], |
| 197 | + "eslintIgnore": ["tools/flow"], |
212 | 198 | "stylelint": { |
213 | 199 | "extends": [ |
214 | 200 | "stylelint-config-standard", |
215 | 201 | "stylelint-config-recommended-scss", |
216 | 202 | "./node_modules/prettier-stylelint/config.js" |
217 | 203 | ], |
218 | | - "plugins": [ |
219 | | - "stylelint-scss" |
220 | | - ], |
| 204 | + "plugins": ["stylelint-scss"], |
221 | 205 | "rules": { |
222 | 206 | "string-quotes": "single", |
223 | 207 | "selector-pseudo-class-no-unknown": [ |
224 | 208 | true, |
225 | 209 | { |
226 | | - "ignorePseudoClasses": [ |
227 | | - "global", |
228 | | - "local" |
229 | | - ] |
| 210 | + "ignorePseudoClasses": ["global", "local"] |
230 | 211 | } |
231 | 212 | ] |
232 | 213 | } |
233 | 214 | }, |
234 | 215 | "jest": { |
235 | | - "setupFiles": [ |
236 | | - "raf/polyfill", |
237 | | - "<rootDir>/tools/jest/setup.js" |
238 | | - ], |
| 216 | + "setupFiles": ["raf/polyfill", "<rootDir>/tools/jest/setup.js"], |
239 | 217 | "globals": { |
240 | 218 | "__DEV__": true |
241 | 219 | }, |
|
252 | 230 | ], |
253 | 231 | "moduleNameMapper": { |
254 | 232 | ".*\\.(css|scss|sass)$": "<rootDir>/tools/jest/styleMock.js", |
255 | | - ".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tools/jest/assetMock.js" |
| 233 | + ".*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": |
| 234 | + "<rootDir>/tools/jest/assetMock.js" |
256 | 235 | } |
257 | 236 | }, |
258 | 237 | "nodemonConfig": { |
259 | | - "watch": [ |
260 | | - "src/server.js", |
261 | | - "src/helpers/renderHtml.js" |
262 | | - ] |
| 238 | + "watch": ["src/server.js", "src/helpers/renderHtml.js"] |
263 | 239 | }, |
264 | | - "browserslist": [ |
265 | | - "> 1%", |
266 | | - "last 2 versions" |
267 | | - ], |
| 240 | + "browserslist": ["> 1%", "last 2 versions"], |
268 | 241 | "dependencies": { |
269 | 242 | "@babel/register": "^7.0.0-beta.44", |
270 | 243 | "axios": "^0.18.0", |
|
0 commit comments