Skip to content

Commit 2116a2e

Browse files
committed
Refactor package.json, tsconfig.json
1 parent c95de39 commit 2116a2e

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,32 @@
5757
"build": "tsc --build --clean && tsc --build && type-coverage",
5858
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5959
"test-api": "node --conditions development test.js",
60-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
61-
"test": "npm run format && npm run test-coverage"
60+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
61+
"test": "npm run build && npm run format && npm run test-coverage"
6262
},
6363
"prettier": {
64-
"tabWidth": 2,
65-
"useTabs": false,
66-
"singleQuote": true,
6764
"bracketSpacing": false,
6865
"semi": false,
69-
"trailingComma": "none"
70-
},
71-
"xo": {
72-
"prettier": true,
73-
"rules": {
74-
"unicorn/prefer-at": "off"
75-
}
66+
"singleQuote": true,
67+
"tabWidth": 2,
68+
"trailingComma": "none",
69+
"useTabs": false
7670
},
7771
"remarkConfig": {
7872
"plugins": [
79-
"preset-wooorm"
73+
"remark-preset-wooorm"
8074
]
8175
},
8276
"typeCoverage": {
8377
"atLeast": 100,
8478
"detail": true,
79+
"ignoreCatch": true,
8580
"strict": true
81+
},
82+
"xo": {
83+
"prettier": true,
84+
"rules": {
85+
"unicorn/prefer-at": "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)