|
26 | 26 | "contributors": [ |
27 | 27 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" |
28 | 28 | ], |
| 29 | + "sideEffects": false, |
| 30 | + "type": "module", |
| 31 | + "main": "index.js", |
29 | 32 | "types": "types/index.d.ts", |
30 | 33 | "files": [ |
31 | 34 | "types", |
32 | 35 | "index.js" |
33 | 36 | ], |
34 | 37 | "dependencies": { |
35 | | - "unist-util-visit": "^2.0.0" |
| 38 | + "unist-util-visit": "^3.0.0" |
36 | 39 | }, |
37 | 40 | "devDependencies": { |
38 | 41 | "@types/mdast": "^3.0.0", |
39 | | - "browserify": "^17.0.0", |
40 | | - "dtslint": "^4.0.0", |
41 | | - "nyc": "^15.0.0", |
| 42 | + "c8": "^7.0.0", |
42 | 43 | "prettier": "^2.0.0", |
43 | 44 | "remark": "^13.0.0", |
44 | 45 | "remark-cli": "^9.0.0", |
45 | 46 | "remark-preset-wooorm": "^8.0.0", |
46 | 47 | "tape": "^5.0.0", |
47 | | - "tinyify": "^3.0.0", |
48 | | - "xo": "^0.38.0" |
| 48 | + "xo": "^0.39.0" |
49 | 49 | }, |
50 | 50 | "scripts": { |
51 | | - "format": "remark . -qfo && prettier . --write && xo --fix --ignore types", |
52 | | - "build-bundle": "browserify . -s mdastUtilDefinitions -o mdast-util-definitions.js", |
53 | | - "build-mangle": "browserify . -s mdastUtilDefinitions -o mdast-util-definitions.min.js -p tinyify", |
54 | | - "build": "npm run build-bundle && npm run build-mangle", |
55 | | - "test-api": "node test", |
56 | | - "test-coverage": "nyc --reporter lcov tape test.js", |
57 | | - "test-types": "dtslint types", |
58 | | - "test": "npm run format && npm run build && npm run test-coverage && npm run test-types" |
59 | | - }, |
60 | | - "nyc": { |
61 | | - "check-coverage": true, |
62 | | - "lines": 100, |
63 | | - "functions": 100, |
64 | | - "branches": 100 |
| 51 | + "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
| 52 | + "test-api": "node test.js", |
| 53 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", |
| 54 | + "test": "npm run format && npm run test-coverage" |
65 | 55 | }, |
66 | 56 | "prettier": { |
67 | 57 | "tabWidth": 2, |
|
73 | 63 | }, |
74 | 64 | "xo": { |
75 | 65 | "prettier": true, |
76 | | - "esnext": false, |
| 66 | + "rules": { |
| 67 | + "no-var": "off", |
| 68 | + "prefer-arrow-callback": "off" |
| 69 | + }, |
77 | 70 | "ignore": [ |
78 | | - "types", |
79 | | - "mdast-util-definitions.js" |
| 71 | + "types/" |
80 | 72 | ] |
81 | 73 | }, |
82 | 74 | "remarkConfig": { |
|
0 commit comments