|
5 | 5 | "main": "index.js",
|
6 | 6 | "scripts": {
|
7 | 7 | "test": "xo && jest",
|
8 |
| - "lint": |
9 |
| - "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' '*.json' --write && xo && markdownlint .", |
| 8 | + "lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' '*.json' --write && xo && markdownlint .", |
10 | 9 | "precommit": "lint-staged",
|
11 | 10 | "analyze": "cross-env ANALYZE=1 next build",
|
12 | 11 | "dev": "cross-env NODE_ENV=development node server.js",
|
|
18 | 17 | },
|
19 | 18 | "xo": {
|
20 | 19 | "parser": "babel-eslint",
|
21 |
| - "extends": ["prettier", "prettier/react", "plugin:react/recommended"], |
22 |
| - "env": ["browser", "node"], |
| 20 | + "extends": [ |
| 21 | + "prettier", |
| 22 | + "prettier/react", |
| 23 | + "plugin:react/recommended" |
| 24 | + ], |
| 25 | + "env": [ |
| 26 | + "browser", |
| 27 | + "node" |
| 28 | + ], |
23 | 29 | "rules": {
|
24 | 30 | "linebreak-style": 0,
|
25 | 31 | "react/display-name": 0,
|
26 | 32 | "react/prop-types": 0
|
27 | 33 | },
|
28 | 34 | "space:": 2,
|
29 |
| - "ignores": ["next.config.js"], |
| 35 | + "ignores": [ |
| 36 | + "next.config.js" |
| 37 | + ], |
30 | 38 | "overrides": [
|
31 | 39 | {
|
32 | 40 | "files": "**/__tests__/*.test.js",
|
33 |
| - "globals": ["describe", "it", "expect"] |
| 41 | + "globals": [ |
| 42 | + "describe", |
| 43 | + "it", |
| 44 | + "expect" |
| 45 | + ] |
34 | 46 | }
|
35 | 47 | ]
|
36 | 48 | },
|
|
41 | 53 | "jest --findRelatedTests",
|
42 | 54 | "git add"
|
43 | 55 | ],
|
44 |
| - "**/*.md": ["prettier", "markdownlint", "git add"], |
45 |
| - ".github/CONTRIBUTING.md": ["doctoc", "prettier", "git add"] |
| 56 | + "**/*.md": [ |
| 57 | + "prettier", |
| 58 | + "markdownlint", |
| 59 | + "git add" |
| 60 | + ], |
| 61 | + ".github/CONTRIBUTING.md": [ |
| 62 | + "doctoc", |
| 63 | + "prettier", |
| 64 | + "git add" |
| 65 | + ] |
46 | 66 | },
|
47 | 67 | "dependencies": {
|
48 | 68 | "babel-plugin-emotion": "^8.0.10",
|
|
54 | 74 | "isomorphic-unfetch": "2.0.0",
|
55 | 75 | "lodash.take": "^4.1.1",
|
56 | 76 | "marked": "^0.3.6",
|
57 |
| - "next": "^4.1.0", |
| 77 | + "next": "^4.2.3", |
58 | 78 | "nprogress": "^0.2.0",
|
59 | 79 | "path-match": "1.2.4",
|
60 |
| - "preact": "^8.2.6", |
61 |
| - "preact-compat": "^3.17.0", |
62 |
| - "preact-emotion": "^8.0.10", |
63 | 80 | "prop-types": "^15.5.10",
|
64 | 81 | "react": "^16.0.0",
|
65 | 82 | "react-content-loader": "^1.7.1",
|
|
72 | 89 | },
|
73 | 90 | "devDependencies": {
|
74 | 91 | "all-contributors-cli": "^4.10.0",
|
75 |
| - "babel-eslint": "^8.0.1", |
| 92 | + "babel-eslint": "7.2.3", |
76 | 93 | "babel-plugin-lodash": "^3.2.11",
|
77 | 94 | "cross-env": "^5.0.2",
|
78 | 95 | "doctoc": "^1.3.0",
|
|
84 | 101 | "husky": "^0.14.3",
|
85 | 102 | "jest": "^22.0.0",
|
86 | 103 | "lint-staged": "^6.0.0",
|
87 |
| - "markdownlint-cli": "^0.5.0", |
| 104 | + "markdownlint-cli": "^0.6.0", |
88 | 105 | "opn": "^5.1.0",
|
89 | 106 | "prettier": "^1.7.0",
|
90 | 107 | "raf": "^3.4.0",
|
91 | 108 | "react-test-renderer": "^16.0.0",
|
92 | 109 | "typescript": "^2.6.1",
|
93 |
| - "typescript-styled-plugin": "^0.2.0", |
| 110 | + "typescript-styled-plugin": "^0.4.0", |
94 | 111 | "webpack-bundle-analyzer": "^2.8.3",
|
95 | 112 | "xo": "^0.18.2"
|
96 | 113 | },
|
|
0 commit comments