Skip to content

Commit b66c439

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 8e0233e commit b66c439

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,29 @@
6262
"build": "tsc --build --clean && tsc --build && type-coverage",
6363
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6464
"test-api": "node --conditions development test.js",
65-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
65+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6666
"test": "npm run build && npm run format && npm run test-coverage"
6767
},
6868
"prettier": {
69-
"tabWidth": 2,
70-
"useTabs": false,
71-
"singleQuote": true,
7269
"bracketSpacing": false,
7370
"semi": false,
74-
"trailingComma": "none"
75-
},
76-
"xo": {
77-
"prettier": true
71+
"singleQuote": true,
72+
"tabWidth": 2,
73+
"trailingComma": "none",
74+
"useTabs": false
7875
},
7976
"remarkConfig": {
8077
"plugins": [
81-
"preset-wooorm"
78+
"remark-preset-wooorm"
8279
]
8380
},
8481
"typeCoverage": {
8582
"atLeast": 100,
8683
"detail": true,
87-
"strict": true,
88-
"ignoreCatch": true
84+
"ignoreCatch": true,
85+
"strict": true
86+
},
87+
"xo": {
88+
"prettier": true
8989
}
9090
}

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"include": ["**/*.js", "index.d.ts"],
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", "index.d.ts"]
1715
}

0 commit comments

Comments
 (0)