Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit d8ccbb3

Browse files
committed
fix lint-staged issue
1 parent d23a1d9 commit d8ccbb3

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

package.json

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"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 .",
910
"precommit": "lint-staged",
1011
"analyze": "cross-env ANALYZE=1 next build",
1112
"dev": "cross-env NODE_ENV=development node server.js",
@@ -17,32 +18,19 @@
1718
},
1819
"xo": {
1920
"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"],
2923
"rules": {
3024
"linebreak-style": 0,
3125
"react/display-name": 0,
3226
"react/prop-types": 0
3327
},
3428
"space:": 2,
35-
"ignores": [
36-
"next.config.js"
37-
],
29+
"ignores": ["next.config.js"],
3830
"overrides": [
3931
{
4032
"files": "**/__tests__/*.test.js",
41-
"globals": [
42-
"describe",
43-
"it",
44-
"expect"
45-
]
33+
"globals": ["describe", "it", "expect"]
4634
}
4735
]
4836
},
@@ -53,16 +41,8 @@
5341
"jest --findRelatedTests",
5442
"git add"
5543
],
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"]
6646
},
6747
"dependencies": {
6848
"babel-plugin-emotion": "^8.0.10",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy