Skip to content

Commit c37ab8c

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 1f19951 commit c37ab8c

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,29 @@
5151
"build": "tsc --build --clean && tsc --build && type-coverage",
5252
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5353
"test-api": "node --conditions development test.js",
54-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
54+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5555
"test": "npm run build && npm run format && npm run test-coverage"
5656
},
5757
"prettier": {
58-
"tabWidth": 2,
59-
"useTabs": false,
60-
"singleQuote": true,
6158
"bracketSpacing": false,
6259
"semi": false,
63-
"trailingComma": "none"
64-
},
65-
"xo": {
66-
"prettier": true
60+
"singleQuote": true,
61+
"tabWidth": 2,
62+
"trailingComma": "none",
63+
"useTabs": false
6764
},
6865
"remarkConfig": {
6966
"plugins": [
70-
"preset-wooorm"
67+
"remark-preset-wooorm"
7168
]
7269
},
7370
"typeCoverage": {
7471
"atLeast": 100,
7572
"detail": true,
73+
"ignoreCatch": true,
7674
"strict": true
75+
},
76+
"xo": {
77+
"prettier": true
7778
}
7879
}

tsconfig.json

Lines changed: 4 additions & 6 deletions
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)