Skip to content

Commit f96278e

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 0f4a302 commit f96278e

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,34 @@
5555
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
5656
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
5757
"test-api": "node --conditions development test/index.js",
58-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
59-
"test": "npm run build && npm run format && npm run build && npm run test-coverage"
58+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
59+
"test": "npm run build && npm run format && npm run test-coverage"
6060
},
6161
"prettier": {
62-
"tabWidth": 2,
63-
"useTabs": false,
64-
"singleQuote": true,
6562
"bracketSpacing": false,
6663
"semi": false,
67-
"trailingComma": "none"
68-
},
69-
"xo": {
70-
"prettier": true,
71-
"rules": {
72-
"capitalized-comments": "off",
73-
"eqeqeq": "off",
74-
"no-eq-null": "off"
75-
}
64+
"singleQuote": true,
65+
"tabWidth": 2,
66+
"trailingComma": "none",
67+
"useTabs": false
7668
},
7769
"remarkConfig": {
7870
"plugins": [
79-
"preset-wooorm"
71+
"remark-preset-wooorm"
8072
]
8173
},
8274
"typeCoverage": {
8375
"atLeast": 100,
8476
"detail": true,
77+
"ignoreCatch": true,
8578
"strict": true
79+
},
80+
"xo": {
81+
"prettier": true,
82+
"rules": {
83+
"capitalized-comments": "off",
84+
"eqeqeq": "off",
85+
"no-eq-null": "off"
86+
}
8687
}
8788
}

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)