|
5 | 5 | "main": "index.js",
|
6 | 6 | "scripts": {
|
7 | 7 | "test": "xo && jest",
|
8 |
| - "lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write && xo && markdownlint .", |
| 8 | + "lint": |
| 9 | + "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write && xo && markdownlint .", |
9 | 10 | "precommit": "lint-staged",
|
10 | 11 | "analyze": "cross-env ANALYZE=1 next build",
|
11 | 12 | "dev": "cross-env NODE_ENV=development node server.js",
|
|
17 | 18 | },
|
18 | 19 | "xo": {
|
19 | 20 | "parser": "babel-eslint",
|
20 |
| - "extends": [ |
21 |
| - "prettier", |
22 |
| - "prettier/react", |
23 |
| - "plugin:react/recommended" |
24 |
| - ], |
25 |
| - "env": [ |
26 |
| - "browser", |
27 |
| - "node" |
28 |
| - ], |
| 21 | + "extends": ["prettier", "prettier/react", "plugin:react/recommended"], |
| 22 | + "env": ["browser", "node"], |
29 | 23 | "rules": {
|
30 | 24 | "linebreak-style": 0,
|
31 | 25 | "react/display-name": 0,
|
32 | 26 | "react/prop-types": 0
|
33 | 27 | },
|
34 | 28 | "space:": 2,
|
35 |
| - "ignores": [ |
36 |
| - "next.config.js" |
37 |
| - ], |
| 29 | + "ignores": ["next.config.js"], |
38 | 30 | "overrides": [
|
39 | 31 | {
|
40 | 32 | "files": "**/__tests__/*.test.js",
|
41 |
| - "globals": [ |
42 |
| - "describe", |
43 |
| - "it", |
44 |
| - "expect" |
45 |
| - ] |
| 33 | + "globals": ["describe", "it", "expect"] |
46 | 34 | }
|
47 | 35 | ]
|
48 | 36 | },
|
|
53 | 41 | "jest --findRelatedTests",
|
54 | 42 | "git add"
|
55 | 43 | ],
|
56 |
| - "*.md": [ |
57 |
| - "prettier", |
58 |
| - "markdownlint", |
59 |
| - "git add" |
60 |
| - ], |
61 |
| - ".github/CONTRIBUTING.md": [ |
62 |
| - "doctoc", |
63 |
| - "prettier", |
64 |
| - "git add" |
65 |
| - ] |
| 44 | + "**/*.md": ["prettier", "markdownlint", "git add"], |
| 45 | + ".github/CONTRIBUTING.md": ["doctoc", "prettier", "git add"] |
66 | 46 | },
|
67 | 47 | "dependencies": {
|
68 | 48 | "babel-plugin-emotion": "^8.0.10",
|
|
0 commit comments