Skip to content

Commit aa356c7

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 9a3fff8 commit aa356c7

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,29 @@
6363
"build": "tsc --build --clean && tsc --build && type-coverage",
6464
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6565
"test-api": "node --conditions development test.js",
66-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
66+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6767
"test": "npm run build && npm run format && npm run test-coverage"
6868
},
6969
"prettier": {
70-
"tabWidth": 2,
71-
"useTabs": false,
72-
"singleQuote": true,
7370
"bracketSpacing": false,
7471
"semi": false,
75-
"trailingComma": "none"
76-
},
77-
"xo": {
78-
"prettier": true
72+
"singleQuote": true,
73+
"tabWidth": 2,
74+
"trailingComma": "none",
75+
"useTabs": false
7976
},
8077
"remarkConfig": {
8178
"plugins": [
82-
"preset-wooorm"
79+
"remark-preset-wooorm"
8380
]
8481
},
8582
"typeCoverage": {
8683
"atLeast": 100,
8784
"detail": true,
85+
"ignoreCatch": true,
8886
"strict": true
87+
},
88+
"xo": {
89+
"prettier": true
8990
}
9091
}

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)