Skip to content

Commit 9551067

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 1ea759d commit 9551067

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,29 @@
6767
"build": "tsc --build --clean && tsc --build && type-coverage",
6868
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6969
"test-api": "node --conditions development test.js",
70-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
70+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7171
"test": "npm run build && npm run format && npm run test-coverage"
7272
},
7373
"prettier": {
74-
"tabWidth": 2,
75-
"useTabs": false,
76-
"singleQuote": true,
7774
"bracketSpacing": false,
7875
"semi": false,
79-
"trailingComma": "none"
80-
},
81-
"xo": {
82-
"prettier": true
76+
"singleQuote": true,
77+
"tabWidth": 2,
78+
"trailingComma": "none",
79+
"useTabs": false
8380
},
8481
"remarkConfig": {
8582
"plugins": [
86-
"preset-wooorm"
83+
"remark-preset-wooorm"
8784
]
8885
},
8986
"typeCoverage": {
9087
"atLeast": 100,
9188
"detail": true,
92-
"strict": true,
93-
"ignoreCatch": true
89+
"ignoreCatch": true,
90+
"strict": true
91+
},
92+
"xo": {
93+
"prettier": true
9494
}
9595
}

tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2-
"include": ["**/*.js", "lib/complex-types.d.ts", "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",
1310
"strict": true,
1411
"target": "es2020"
15-
}
12+
},
13+
"exclude": ["coverage/", "node_modules/"],
14+
"include": ["**/*.js", "lib/complex-types.d.ts", "index.d.ts"]
1615
}

0 commit comments

Comments
 (0)