|
77 | 77 | "build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw", |
78 | 78 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", |
79 | 79 | "test-api": "node --conditions development test/index.js", |
80 | | - "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api", |
| 80 | + "test-coverage": "c8 --100 --reporter lcov npm run test-api", |
81 | 81 | "test": "npm run build && npm run format && npm run test-coverage" |
82 | 82 | }, |
83 | 83 | "prettier": { |
84 | | - "tabWidth": 2, |
85 | | - "useTabs": false, |
86 | | - "singleQuote": true, |
87 | 84 | "bracketSpacing": false, |
88 | 85 | "semi": false, |
89 | | - "trailingComma": "none" |
| 86 | + "singleQuote": true, |
| 87 | + "tabWidth": 2, |
| 88 | + "trailingComma": "none", |
| 89 | + "useTabs": false |
| 90 | + }, |
| 91 | + "remarkConfig": { |
| 92 | + "plugins": [ |
| 93 | + "remark-preset-wooorm" |
| 94 | + ] |
| 95 | + }, |
| 96 | + "typeCoverage": { |
| 97 | + "atLeast": 100, |
| 98 | + "detail": true, |
| 99 | + "ignoreCatch": true, |
| 100 | + "strict": true |
90 | 101 | }, |
91 | 102 | "xo": { |
92 | | - "prettier": true, |
93 | | - "rules": { |
94 | | - "complexity": "off", |
95 | | - "n/file-extension-in-import": "off", |
96 | | - "unicorn/prefer-code-point": "off", |
97 | | - "unicorn/prefer-switch": "off", |
98 | | - "unicorn/prefer-node-protocol": "off" |
99 | | - }, |
100 | 103 | "overrides": [ |
101 | 104 | { |
102 | 105 | "files": "test/**/*.js", |
103 | 106 | "rules": { |
104 | 107 | "no-await-in-loop": "off" |
105 | 108 | } |
106 | 109 | } |
107 | | - ] |
108 | | - }, |
109 | | - "remarkConfig": { |
110 | | - "plugins": [ |
111 | | - "preset-wooorm" |
112 | | - ] |
113 | | - }, |
114 | | - "typeCoverage": { |
115 | | - "atLeast": 100, |
116 | | - "detail": true, |
117 | | - "strict": true, |
118 | | - "ignoreCatch": true |
| 110 | + ], |
| 111 | + "prettier": true, |
| 112 | + "rules": { |
| 113 | + "complexity": "off", |
| 114 | + "n/file-extension-in-import": "off", |
| 115 | + "unicorn/prefer-code-point": "off", |
| 116 | + "unicorn/prefer-switch": "off", |
| 117 | + "unicorn/prefer-node-protocol": "off" |
| 118 | + } |
119 | 119 | } |
120 | 120 | } |
0 commit comments