Skip to content

Commit 196b5ee

Browse files
committed
Refactor package.json, tsconfig.json
1 parent afb0432 commit 196b5ee

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
@@ -51,31 +51,32 @@
5151
"build": "tsc --build --clean && tsc --build && type-coverage",
5252
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
5353
"test-api": "node --conditions development test.js",
54-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
54+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5555
"test": "npm run build && npm run format && npm run test-coverage"
5656
},
5757
"prettier": {
58-
"tabWidth": 2,
59-
"useTabs": false,
60-
"singleQuote": true,
6158
"bracketSpacing": false,
6259
"semi": false,
63-
"trailingComma": "none"
64-
},
65-
"xo": {
66-
"prettier": true,
67-
"rules": {
68-
"unicorn/prefer-switch": "off"
69-
}
60+
"singleQuote": true,
61+
"tabWidth": 2,
62+
"trailingComma": "none",
63+
"useTabs": false
7064
},
7165
"remarkConfig": {
7266
"plugins": [
73-
"preset-wooorm"
67+
"remark-preset-wooorm"
7468
]
7569
},
7670
"typeCoverage": {
7771
"atLeast": 100,
7872
"detail": true,
73+
"ignoreCatch": true,
7974
"strict": true
75+
},
76+
"xo": {
77+
"prettier": true,
78+
"rules": {
79+
"unicorn/prefer-switch": "off"
80+
}
8081
}
8182
}

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)