Skip to content

Commit 6896925

Browse files
committed
Refactor package.json, tsconfig.json
1 parent ef9716a commit 6896925

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,29 @@
5252
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
5353
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5454
"test-api": "node --conditions development test.js",
55-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
55+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5656
"test": "npm run build && npm run format && npm run test-coverage"
5757
},
5858
"prettier": {
59-
"tabWidth": 2,
60-
"useTabs": false,
61-
"singleQuote": true,
6259
"bracketSpacing": false,
6360
"semi": false,
64-
"trailingComma": "none"
65-
},
66-
"xo": {
67-
"prettier": true
61+
"singleQuote": true,
62+
"tabWidth": 2,
63+
"trailingComma": "none",
64+
"useTabs": false
6865
},
6966
"remarkConfig": {
7067
"plugins": [
71-
"preset-wooorm"
68+
"remark-preset-wooorm"
7269
]
7370
},
7471
"typeCoverage": {
7572
"atLeast": 100,
7673
"detail": true,
74+
"ignoreCatch": true,
7775
"strict": true
76+
},
77+
"xo": {
78+
"prettier": true
7879
}
7980
}

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)