-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
189 lines (189 loc) Β· 4.56 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "ybiq",
"version": "11.7.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": "lib/index.js",
"bin": "bin/cli.js",
"types": "types/ybiq.d.ts",
"files": [
"bin",
"lib",
"types",
".editorconfig",
".remarkignore",
".github/workflows/commitlint.yml",
".github/workflows/npm-audit-fix.yml",
".github/workflows/release.yml",
".github/workflows/test.yml"
],
"engines": {
"node": ">=12.13.0"
},
"dependencies": {
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"eslint": "^7.11.0",
"husky": "^5.1.1",
"lint-staged": "^10.4.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"remark-cli": "^9.0.0",
"remark-lint-no-heading-punctuation": "^2.0.1",
"remark-preset-lint-recommended": "^5.0.0",
"remark-validate-links": "^10.0.2",
"standard-version": "^9.0.0",
"yargs": "^16.0.3"
},
"devDependencies": {
"@types/node": "^14.11.8",
"@types/yargs": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"eslint-config-ybiquitous": "^12.1.0",
"eslint-plugin-jest": "^24.1.0",
"jest": "^26.5.3",
"typescript": "^4.0.3"
},
"scripts": {
"test": "jest --coverage && npm run test:types",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:types": "tsc --project test/tsconfig.test.json --noEmit",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"clean": "git clean -dx --force --exclude=node_modules",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
"sign": true,
"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": {
"body-max-line-length": [
2,
"always",
200
],
"scope-enum": [
2,
"always",
[
"",
"actions",
"api",
"commitlint",
"coverage",
"deps",
"deps-dev",
"editorconfig",
"eslint",
"init",
"lint-staged",
"package",
"prettier",
"readme",
"release",
"remark",
"standard-version",
"types"
]
]
}
},
"eslintConfig": {
"root": true,
"ignorePatterns": [
"coverage"
],
"extends": [
"ybiquitous/node"
],
"rules": {
"import/no-internal-modules": "off"
},
"overrides": [
{
"files": "**/*.ts",
"extends": "ybiquitous/typescript",
"parserOptions": {
"project": [
"./tsconfig.json",
"./test/tsconfig.test.json"
]
},
"rules": {
"node/no-unsupported-features/es-syntax": "off"
}
},
{
"files": "**/*.test.js",
"extends": "plugin:jest/recommended",
"rules": {
"node/no-unsupported-features/node-builtins": "off"
}
}
]
},
"browserslist": [
"> 1%",
"not ie 11",
"not op_mini all"
],
"jest": {
"testRegex": ".*\\.test\\.js$",
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 90,
"lines": 95,
"statements": 95
}
}
}
}