Skip to content

Commit 087b272

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 23a91fc commit 087b272

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,20 @@
6464
"build": "tsc --build --clean && tsc --build && type-coverage",
6565
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6666
"test-api": "node --conditions development test/index.js",
67-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
67+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6868
"test": "npm run build && npm run format && npm run test-coverage"
6969
},
7070
"prettier": {
71-
"tabWidth": 2,
72-
"useTabs": false,
73-
"singleQuote": true,
7471
"bracketSpacing": false,
7572
"semi": false,
76-
"trailingComma": "none"
77-
},
78-
"xo": {
79-
"prettier": true,
80-
"rules": {
81-
"unicorn/prefer-at": "off",
82-
"unicorn/prefer-string-replace-all": "off"
83-
}
73+
"singleQuote": true,
74+
"tabWidth": 2,
75+
"trailingComma": "none",
76+
"useTabs": false
8477
},
8578
"remarkConfig": {
8679
"plugins": [
87-
"preset-wooorm",
80+
"remark-preset-wooorm",
8881
[
8982
"remark-lint-no-html",
9083
false
@@ -94,6 +87,14 @@
9487
"typeCoverage": {
9588
"atLeast": 100,
9689
"detail": true,
90+
"ignoreCatch": true,
9791
"strict": true
92+
},
93+
"xo": {
94+
"prettier": true,
95+
"rules": {
96+
"unicorn/prefer-at": "off",
97+
"unicorn/prefer-string-replace-all": "off"
98+
}
9899
}
99100
}

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)