Skip to content

Commit 054aecd

Browse files
committed
Refactor package.json, tsconfig.json
1 parent e4abe71 commit 054aecd

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
@@ -48,28 +48,29 @@
4848
"build": "tsc --build --clean && tsc --build && type-coverage",
4949
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5050
"test-api": "node --conditions development test.js",
51-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
51+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5252
"test": "npm run build && npm run format && npm run test-coverage"
5353
},
5454
"prettier": {
55-
"tabWidth": 2,
56-
"useTabs": false,
57-
"singleQuote": true,
5855
"bracketSpacing": false,
5956
"semi": false,
60-
"trailingComma": "none"
61-
},
62-
"xo": {
63-
"prettier": true
57+
"singleQuote": true,
58+
"tabWidth": 2,
59+
"trailingComma": "none",
60+
"useTabs": false
6461
},
6562
"remarkConfig": {
6663
"plugins": [
67-
"preset-wooorm"
64+
"remark-preset-wooorm"
6865
]
6966
},
7067
"typeCoverage": {
7168
"atLeast": 100,
7269
"detail": true,
70+
"ignoreCatch": true,
7371
"strict": true
72+
},
73+
"xo": {
74+
"prettier": true
7475
}
7576
}

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)