Skip to content

Commit cef3307

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 09e81a2 commit cef3307

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

package.json

+22-21
Original file line numberDiff line numberDiff line change
@@ -70,41 +70,42 @@
7070
"build": "tsc --build --clean && tsc --build && type-coverage",
7171
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
7272
"test-api": "node --conditions development test/index.js",
73-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
73+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7474
"test": "npm run build && npm run format && npm run test-coverage"
7575
},
7676
"prettier": {
77-
"tabWidth": 2,
78-
"useTabs": false,
79-
"singleQuote": true,
8077
"bracketSpacing": false,
8178
"semi": false,
82-
"trailingComma": "none"
79+
"singleQuote": true,
80+
"tabWidth": 2,
81+
"trailingComma": "none",
82+
"useTabs": false
83+
},
84+
"remarkConfig": {
85+
"plugins": [
86+
"remark-preset-wooorm"
87+
]
88+
},
89+
"typeCoverage": {
90+
"atLeast": 100,
91+
"detail": true,
92+
"ignoreCatch": true,
93+
"strict": true
8394
},
8495
"xo": {
85-
"prettier": true,
86-
"rules": {
87-
"max-params": "off"
88-
},
8996
"overrides": [
9097
{
9198
"files": [
9299
"test/**/*.js"
93100
],
94101
"rules": {
95-
"no-await-in-loop": 0
102+
"no-await-in-loop": "off"
96103
}
97104
}
98-
]
99-
},
100-
"remarkConfig": {
101-
"plugins": [
102-
"preset-wooorm"
103-
]
104-
},
105-
"typeCoverage": {
106-
"atLeast": 100,
107-
"detail": true,
108-
"strict": true
105+
],
106+
"rules": {
107+
"max-params": "off"
108+
},
109+
"prettier": true
109110
}
110111
}

tsconfig.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"include": ["**/**.js"],
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/", "node_modules/"],
14+
"include": ["**/*.js"]
1715
}

0 commit comments

Comments
 (0)