Skip to content

Commit 421b33a

Browse files
committed
Refactor package.json, tsconfig.json
1 parent ae00b80 commit 421b33a

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,31 +66,32 @@
6666
"build": "tsc --build --clean && tsc --build && type-coverage",
6767
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6868
"test-api": "node --conditions development test.js",
69-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
69+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7070
"test": "npm run build && npm run format && npm run test-coverage"
7171
},
7272
"prettier": {
73-
"tabWidth": 2,
74-
"useTabs": false,
75-
"singleQuote": true,
7673
"bracketSpacing": false,
7774
"semi": false,
78-
"trailingComma": "none"
79-
},
80-
"xo": {
81-
"prettier": true,
82-
"rules": {
83-
"unicorn/prefer-string-replace-all": "off"
84-
}
75+
"singleQuote": true,
76+
"tabWidth": 2,
77+
"trailingComma": "none",
78+
"useTabs": false
8579
},
8680
"remarkConfig": {
8781
"plugins": [
88-
"preset-wooorm"
82+
"remark-preset-wooorm"
8983
]
9084
},
9185
"typeCoverage": {
9286
"atLeast": 100,
9387
"detail": true,
88+
"ignoreCatch": true,
9489
"strict": true
90+
},
91+
"xo": {
92+
"prettier": true,
93+
"rules": {
94+
"unicorn/prefer-string-replace-all": "off"
95+
}
9596
}
9697
}

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +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,
98
"lib": ["es2020"],
109
"module": "node16",
1110
"strict": true,
1211
"target": "es2020"
13-
}
12+
},
13+
"exclude": ["coverage/", "node_modules/"],
14+
"include": ["**/*.js"]
1415
}

0 commit comments

Comments
 (0)