/
package.json
168 lines (168 loc) Β· 3.89 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "ybiq",
"version": "8.0.0",
"description": "Useful command-line tools for Node.js project",
"author": "Masafumi Koba <ybiquitous@gmail.com>",
"license": "MIT",
"repository": "ybiquitous/ybiq",
"keywords": [
"cli",
"command-line",
"utility",
"tool"
],
"main": "index.js",
"bin": "bin/cli.js",
"files": [
"bin",
"lib",
".editorconfig",
".remarkignore"
],
"engines": {
"node": ">=8.12.0"
},
"dependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@commitlint/travis-cli": "^8.0.0",
"eslint": "^5.16.0",
"husky": "^3.0.0",
"lint-staged": "^9.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"remark-cli": "^6.0.1",
"remark-lint-no-heading-punctuation": "^1.0.3",
"remark-preset-lint-recommended": "^3.0.3",
"remark-validate-links": "^8.0.3",
"standard-version": "^6.0.1",
"yargs": "^13.2.4"
},
"devDependencies": {
"eslint-config-ybiquitous": "^7.3.0",
"fs-extra": "^8.1.0",
"nodemon": "^1.19.1",
"nyc": "^14.1.1",
"tape": "^4.11.0"
},
"scripts": {
"test": "nyc --check-coverage --lines 100 --branches 90 tape \"test/**/*.test.js\"",
"test:watch": "nodemon --ext js,json --watch . --exec \"tape test/**/*.test.js\"",
"test:coverage": "nyc report --reporter=html",
"lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs,.ts,.tsx .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": [
"eslint --fix --no-ignore",
"git add"
],
"!(CHANGELOG).md": [
"remark --frail"
],
"*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}": [
"prettier --write",
"git add"
]
},
"prettier": {
"trailingComma": "es5"
},
"standard-version": {
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"remarkConfig": {
"plugins": [
"preset-lint-recommended",
"lint-no-heading-punctuation",
[
"lint-list-item-bullet-indent",
false
],
[
"lint-list-item-indent",
false
],
"validate-links"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-enum": [
2,
"always",
[
"",
"api",
"commitlint",
"coverage",
"deps",
"deps-dev",
"editorconfig",
"eslint",
"init",
"lint-staged",
"package",
"prettier",
"readme",
"release",
"remark",
"standard-version",
"travis"
]
]
}
},
"eslintConfig": {
"extends": [
"ybiquitous/node"
],
"overrides": [
{
"files": [
"**/test/**/*.js"
],
"rules": {
"no-shadow": [
"error",
{
"allow": [
"t"
]
}
],
"import/no-internal-modules": "off",
"max-lines-per-function": [
"error",
100
]
}
}
]
},
"browserslist": [
"> 1%",
"not ie 11",
"not op_mini all"
]
}