Skip to content

Commit e30e445

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 122f5ff commit e30e445

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,16 @@
6161
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
6262
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6363
"test-api": "node --conditions development test/index.js",
64-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
64+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6565
"test": "npm run build && npm run format && npm run test-coverage"
6666
},
6767
"prettier": {
68-
"tabWidth": 2,
69-
"useTabs": false,
70-
"singleQuote": true,
7168
"bracketSpacing": false,
7269
"semi": false,
73-
"trailingComma": "none"
74-
},
75-
"xo": {
76-
"prettier": true
70+
"singleQuote": true,
71+
"tabWidth": 2,
72+
"trailingComma": "none",
73+
"useTabs": false
7774
},
7875
"remarkConfig": {
7976
"plugins": [
@@ -83,6 +80,10 @@
8380
"typeCoverage": {
8481
"atLeast": 100,
8582
"detail": true,
83+
"ignoreCatch": true,
8684
"strict": true
85+
},
86+
"xo": {
87+
"prettier": true
8788
}
8889
}

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)