Skip to content

Commit 87f1234

Browse files
committed
Refactor package.json, tsconfig.json
1 parent d21e657 commit 87f1234

File tree

2 files changed

+25
-27
lines changed

2 files changed

+25
-27
lines changed

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,30 +64,16 @@
6464
"build": "tsc --build --clean && tsc --build && type-coverage",
6565
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6666
"test-api": "node --conditions development test/index.js",
67-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
67+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6868
"test": "npm run build && npm run format && npm run test-coverage"
6969
},
7070
"prettier": {
71-
"tabWidth": 2,
72-
"useTabs": false,
73-
"singleQuote": true,
7471
"bracketSpacing": false,
7572
"semi": false,
76-
"trailingComma": "none"
77-
},
78-
"xo": {
79-
"prettier": true,
80-
"rules": {
81-
"unicorn/prefer-code-point": "off"
82-
},
83-
"overrides": [
84-
{
85-
"files": "test/**/*.js",
86-
"rules": {
87-
"no-await-in-loop": "off"
88-
}
89-
}
90-
]
73+
"singleQuote": true,
74+
"tabWidth": 2,
75+
"trailingComma": "none",
76+
"useTabs": false
9177
},
9278
"remarkConfig": {
9379
"plugins": [
@@ -97,7 +83,21 @@
9783
"typeCoverage": {
9884
"atLeast": 100,
9985
"detail": true,
100-
"strict": true,
101-
"ignoreCatch": true
86+
"ignoreCatch": true,
87+
"strict": true
88+
},
89+
"xo": {
90+
"overrides": [
91+
{
92+
"files": "test/**/*.js",
93+
"rules": {
94+
"no-await-in-loop": "off"
95+
}
96+
}
97+
],
98+
"prettier": true,
99+
"rules": {
100+
"unicorn/prefer-code-point": "off"
101+
}
102102
}
103103
}

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)