Skip to content

Commit 30c20f9

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 6ca88d0 commit 30c20f9

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,32 @@
5454
"build": "tsc --build --clean && tsc --build && type-coverage",
5555
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
5656
"test-api": "node --conditions development test.js",
57-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
57+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5858
"test": "npm run build && npm run format && npm run test-coverage"
5959
},
6060
"prettier": {
61-
"tabWidth": 2,
62-
"useTabs": false,
63-
"singleQuote": true,
6461
"bracketSpacing": false,
6562
"semi": false,
66-
"trailingComma": "none"
67-
},
68-
"xo": {
69-
"prettier": true
63+
"singleQuote": true,
64+
"tabWidth": 2,
65+
"trailingComma": "none",
66+
"useTabs": false
7067
},
7168
"remarkConfig": {
7269
"plugins": [
73-
"preset-wooorm"
70+
"remark-preset-wooorm"
7471
]
7572
},
7673
"typeCoverage": {
7774
"atLeast": 100,
7875
"detail": true,
79-
"strict": true,
76+
"ignoreCatch": true,
8077
"ignoreFiles": [
8178
"lib/index.d.ts"
82-
]
79+
],
80+
"strict": true
81+
},
82+
"xo": {
83+
"prettier": true
8384
}
8485
}

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)