Skip to content

Commit 52a2c9c

Browse files
committed
Refactor package.json, tsconfig.json
1 parent ed58cd9 commit 52a2c9c

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

package.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,32 @@
6161
"build": "tsc --build --clean && tsc --build && type-coverage",
6262
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6363
"test-api": "node --conditions development test.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,
77-
"rules": {
78-
"@typescript-eslint/ban-types": "off"
79-
}
70+
"singleQuote": true,
71+
"tabWidth": 2,
72+
"trailingComma": "none",
73+
"useTabs": false
8074
},
8175
"remarkConfig": {
8276
"plugins": [
83-
"preset-wooorm"
77+
"remark-preset-wooorm"
8478
]
8579
},
8680
"typeCoverage": {
8781
"atLeast": 100,
8882
"detail": true,
83+
"ignoreCatch": true,
8984
"strict": true
85+
},
86+
"xo": {
87+
"prettier": true,
88+
"rules": {
89+
"@typescript-eslint/ban-types": "off"
90+
}
9091
}
9192
}

tsconfig.json

+4-6
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)