-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
94 lines (94 loc) · 2.49 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
{
"name": "@stefanprobst/rehype-extract-toc",
"version": "2.2.1",
"main": "src/index.js",
"type": "module",
"types": "src/index.d.ts",
"repository": "https://github.com/stefanprobst/rehype-extract-toc.git",
"author": "Stefan Probst <[email protected]>",
"license": "MIT",
"exports": {
".": {
"types": "./src/index.d.ts",
"import": "./src/index.js",
"default": "./src/index.js"
},
"./mdx": {
"types": "./src/mdx.d.ts",
"import": "./src/mdx.js",
"default": "./src/mdx.js"
}
},
"files": [
"src",
"mdx"
],
"scripts": {
"format": "prettier . --cache --check --ignore-path .gitignore",
"format:fix": "npm run format -- --write",
"lint": "eslint . --cache --ignore-path .gitignore",
"lint:fix": "npm run lint -- --fix",
"prepare": "simple-git-hooks || true",
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest",
"validate": "npm run format && npm run lint && npm run test"
},
"engines": {
"node": ">=14.17"
},
"dependencies": {
"estree-util-is-identifier-name": "^2.0.1",
"estree-util-value-to-estree": "^1.3.0",
"hast-util-heading-rank": "^2.1.0",
"hast-util-to-string": "^2.0.0",
"unist-util-visit": "^4.1.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.1",
"@jest/types": "^28.1.1",
"@mdx-js/mdx": "^2.1.1",
"@stefanprobst/commitlint-config": "^1.0.2",
"@stefanprobst/eslint-config-node": "^3.0.0",
"@stefanprobst/prettier-config": "^2.0.2",
"cross-env": "^7.0.3",
"eslint": "^8.17.0",
"jest": "^28.1.1",
"lint-staged": "^13.0.1",
"prettier": "^2.7.0",
"rehype-parse": "^8.0.4",
"rehype-slug": "^5.0.1",
"rehype-stringify": "^9.0.3",
"simple-git-hooks": "^2.8.0",
"typescript": "^4.7.3",
"unified": "^10.1.2"
},
"commitlint": {
"extends": "@stefanprobst/commitlint-config"
},
"eslintConfig": {
"extends": "@stefanprobst/eslint-config-node",
"ignorePatterns": "*.d.ts",
"overrides": [
{
"files": [
"*.test.js"
],
"rules": {
"node/no-unpublished-import": "off"
}
}
]
},
"lint-staged": {
"*.js": [
"eslint --cache --fix",
"prettier --cache --write"
],
"*.(json|md)": "prettier --cache --write"
},
"prettier": "@stefanprobst/prettier-config",
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx lint-staged",
"pre-push": "npm run validate"
}
}