|
22 | 22 | "contributors": [
|
23 | 23 | "Titus Wormer <[email protected]> (https://wooorm.com)"
|
24 | 24 | ],
|
| 25 | + "sideEffects": false, |
25 | 26 | "type": "module",
|
26 |
| - "module": "./index.js", |
27 |
| - "types": "types", |
| 27 | + "main": "index.js", |
| 28 | + "types": "types/", |
28 | 29 | "files": [
|
29 |
| - "index.js", |
30 |
| - "types/index.d.ts" |
| 30 | + "types/index.d.ts", |
| 31 | + "index.js" |
31 | 32 | ],
|
32 | 33 | "dependencies": {
|
33 | 34 | "@types/xast": "^1.0.0",
|
34 | 35 | "bcp-47-normalize": "^1.0.0",
|
35 |
| - "unist-builder": "^2.0.0", |
36 |
| - "xastscript": "^2.0.0" |
| 36 | + "unist-builder": "^3.0.0", |
| 37 | + "xastscript": "^3.0.0" |
37 | 38 | },
|
38 | 39 | "devDependencies": {
|
39 | 40 | "c8": "^7.0.0",
|
40 | 41 | "concat-stream": "^2.0.0",
|
41 |
| - "dtslint": "^4.0.0", |
42 | 42 | "prettier": "^2.0.0",
|
43 | 43 | "regenerate": "^1.0.0",
|
44 | 44 | "remark-cli": "^9.0.0",
|
45 | 45 | "remark-preset-wooorm": "^8.0.0",
|
46 | 46 | "tape": "^5.0.0",
|
47 |
| - "xast-util-to-xml": "^2.0.0", |
48 |
| - "xo": "^0.38.0" |
| 47 | + "xast-util-to-xml": "^3.0.0", |
| 48 | + "xo": "^0.39.0" |
49 | 49 | },
|
50 | 50 | "scripts": {
|
51 | 51 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
52 | 52 | "test-api": "node test.js",
|
53 |
| - "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --experimental-modules test.js", |
54 |
| - "test-types": "dtslint types", |
55 |
| - "test": "npm run format && npm run test-coverage && npm run test-types" |
| 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" |
56 | 55 | },
|
57 | 56 | "prettier": {
|
58 | 57 | "tabWidth": 2,
|
|
64 | 63 | },
|
65 | 64 | "xo": {
|
66 | 65 | "prettier": true,
|
67 |
| - "esnext": false, |
68 | 66 | "rules": {
|
69 | 67 | "complexity": "off",
|
70 | 68 | "eqeqeq": [
|
|
76 | 74 | ],
|
77 | 75 | "max-depth": "off",
|
78 | 76 | "no-eq-null": "off",
|
79 |
| - "no-self-compare": "off", |
80 |
| - "unicorn/prefer-number-properties": "off", |
81 |
| - "unicorn/prefer-type-error": "off" |
| 77 | + "no-var": "off", |
| 78 | + "prefer-arrow-callback": "off" |
82 | 79 | },
|
83 | 80 | "ignores": [
|
84 | 81 | "types"
|
|
0 commit comments