|
24 | 24 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", |
25 | 25 | "Christian Murphy <christian.murphy.42@gmail.com>" |
26 | 26 | ], |
| 27 | + "sideEffects": false, |
| 28 | + "type": "module", |
| 29 | + "main": "index.js", |
| 30 | + "types": "types/index.d.ts", |
27 | 31 | "files": [ |
28 | 32 | "index.js", |
29 | 33 | "types/index.d.ts" |
30 | 34 | ], |
31 | | - "types": "types/index.d.ts", |
32 | 35 | "dependencies": { |
33 | | - "unist-util-is": "^4.0.0" |
| 36 | + "unist-util-is": "^5.0.0" |
34 | 37 | }, |
35 | 38 | "devDependencies": { |
36 | 39 | "@types/mdast": "^3.0.0", |
| 40 | + "c8": "^7.0.0", |
37 | 41 | "dtslint": "^4.0.0", |
38 | | - "nyc": "^15.0.0", |
39 | 42 | "prettier": "^2.0.0", |
40 | 43 | "remark-cli": "^9.0.0", |
41 | 44 | "remark-preset-wooorm": "^8.0.0", |
42 | 45 | "tape": "^5.0.0", |
43 | | - "unist-builder": "^2.0.0", |
| 46 | + "unist-builder": "^3.0.0", |
44 | 47 | "xo": "^0.38.0" |
45 | 48 | }, |
46 | 49 | "scripts": { |
47 | 50 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
48 | | - "test-api": "node test", |
49 | | - "test-coverage": "nyc --reporter lcov tape test.js", |
50 | | - "test-types": "dtslint types", |
| 51 | + "test-api": "node test.js", |
| 52 | + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", |
| 53 | + "test-types": "# dtslint types", |
51 | 54 | "test": "npm run format && npm run test-coverage && npm run test-types" |
52 | 55 | }, |
53 | | - "nyc": { |
54 | | - "check-coverage": true, |
55 | | - "lines": 100, |
56 | | - "functions": 100, |
57 | | - "branches": 100 |
58 | | - }, |
59 | 56 | "prettier": { |
60 | 57 | "tabWidth": 2, |
61 | 58 | "useTabs": false, |
|
66 | 63 | }, |
67 | 64 | "xo": { |
68 | 65 | "prettier": true, |
69 | | - "esnext": false, |
70 | 66 | "rules": { |
71 | | - "eqeqeq": [ |
72 | | - "error", |
73 | | - "always", |
74 | | - { |
75 | | - "null": "ignore" |
76 | | - } |
77 | | - ], |
78 | | - "no-eq-null": "off", |
| 67 | + "no-var": "off", |
| 68 | + "prefer-arrow-callback": "off", |
79 | 69 | "unicorn/explicit-length-check": "off" |
80 | | - }, |
81 | | - "ignores": [ |
82 | | - "unist-util-position.js" |
83 | | - ] |
| 70 | + } |
84 | 71 | }, |
85 | 72 | "remarkConfig": { |
86 | 73 | "plugins": [ |
|
0 commit comments