Skip to content

Commit 7e897eb

Browse files
committed
Refactor package.json, tsconfig.json
1 parent dcc26d2 commit 7e897eb

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,16 @@
7272
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
7373
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
7474
"test-api": "node --conditions development test.js",
75-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
75+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7676
"test": "npm run build && npm run format && npm run test-coverage"
7777
},
7878
"prettier": {
79-
"tabWidth": 2,
80-
"useTabs": false,
81-
"singleQuote": true,
8279
"bracketSpacing": false,
8380
"semi": false,
84-
"trailingComma": "none"
85-
},
86-
"xo": {
87-
"prettier": true,
88-
"rules": {
89-
"@typescript-eslint/ban-types": "off",
90-
"@typescript-eslint/array-type": "off"
91-
}
81+
"singleQuote": true,
82+
"tabWidth": 2,
83+
"trailingComma": "none",
84+
"useTabs": false
9285
},
9386
"remarkConfig": {
9487
"plugins": [
@@ -98,6 +91,14 @@
9891
"typeCoverage": {
9992
"atLeast": 100,
10093
"detail": true,
94+
"ignoreCatch": true,
10195
"strict": true
96+
},
97+
"xo": {
98+
"prettier": true,
99+
"rules": {
100+
"@typescript-eslint/ban-types": "off",
101+
"@typescript-eslint/array-type": "off"
102+
}
102103
}
103104
}

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"include": ["**/*.js", "complex-types.d.ts", "index.d.ts"],
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", "complex-types.d.ts", "index.d.ts"]
1715
}

0 commit comments

Comments
 (0)