Skip to content

Commit a8372bc

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 12138af commit a8372bc

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,29 @@
4949
"build": "tsc --build --clean && tsc --build && type-coverage",
5050
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5151
"test-api": "node --conditions development test.js",
52-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
52+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5353
"test": "npm run build && npm run format && npm run test-coverage"
5454
},
5555
"prettier": {
56-
"tabWidth": 2,
57-
"useTabs": false,
58-
"singleQuote": true,
5956
"bracketSpacing": false,
6057
"semi": false,
61-
"trailingComma": "none"
62-
},
63-
"xo": {
64-
"prettier": true
58+
"singleQuote": true,
59+
"tabWidth": 2,
60+
"trailingComma": "none",
61+
"useTabs": false
6562
},
6663
"remarkConfig": {
6764
"plugins": [
68-
"preset-wooorm"
65+
"remark-preset-wooorm"
6966
]
7067
},
7168
"typeCoverage": {
7269
"atLeast": 100,
7370
"detail": true,
71+
"ignoreCatch": true,
7472
"strict": true
73+
},
74+
"xo": {
75+
"prettier": true
7576
}
7677
}

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)