Skip to content

Commit 662d0cd

Browse files
committed
Refactor package.json, tsconfig.json
1 parent e2ac782 commit 662d0cd

File tree

2 files changed

+29
-31
lines changed

2 files changed

+29
-31
lines changed

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -77,44 +77,44 @@
7777
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
7878
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
7979
"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",
8181
"test": "npm run build && npm run format && npm run test-coverage"
8282
},
8383
"prettier": {
84-
"tabWidth": 2,
85-
"useTabs": false,
86-
"singleQuote": true,
8784
"bracketSpacing": false,
8885
"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
90101
},
91102
"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-
},
100103
"overrides": [
101104
{
102105
"files": "test/**/*.js",
103106
"rules": {
104107
"no-await-in-loop": "off"
105108
}
106109
}
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+
}
119119
}
120120
}

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"include": ["dev/**/*.js", "test/**/*.js", "dev/index.d.ts"],
3-
"exclude": ["coverage/", "node_modules/"],
42
"compilerOptions": {
53
"checkJs": true,
4+
"customConditions": ["development"],
65
"declaration": true,
76
"emitDeclarationOnly": true,
87
"exactOptionalPropertyTypes": true,
9-
"forceConsistentCasingInFileNames": true,
108
"lib": ["es2020"],
119
"module": "node16",
12-
"newLine": "lf",
13-
"skipLibCheck": true,
1410
"strict": true,
1511
"target": "es2020"
16-
}
12+
},
13+
"exclude": ["coverage/", "lib/", "node_modules/", "index.js"],
14+
"include": ["**/*.js", "dev/index.d.ts"]
1715
}

0 commit comments

Comments
 (0)