Skip to content

Commit 0d1ad13

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 1a14a64 commit 0d1ad13

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

package.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,36 @@
5454
"build": "tsc --build --clean && tsc --build && type-coverage",
5555
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
5656
"test-api": "node --conditions development test.js",
57-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
57+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
5858
"test": "npm run build && npm run format && npm run test-coverage"
5959
},
6060
"prettier": {
61-
"tabWidth": 2,
62-
"useTabs": false,
63-
"singleQuote": true,
6461
"bracketSpacing": false,
6562
"semi": false,
66-
"trailingComma": "none"
67-
},
68-
"xo": {
69-
"prettier": true,
70-
"rules": {
71-
"unicorn/prefer-at": "off"
72-
}
63+
"singleQuote": true,
64+
"tabWidth": 2,
65+
"trailingComma": "none",
66+
"useTabs": false
7367
},
7468
"remarkConfig": {
7569
"plugins": [
76-
"preset-wooorm"
70+
"remark-preset-wooorm"
7771
]
7872
},
7973
"typeCoverage": {
8074
"atLeast": 100,
8175
"detail": true,
82-
"ignoreNested": true
76+
"ignoreCatch": true,
77+
"#": "needed `any`s",
78+
"ignoreFiles": [
79+
"lib/index.d.ts"
80+
],
81+
"strict": true
82+
},
83+
"xo": {
84+
"prettier": true,
85+
"rules": {
86+
"unicorn/prefer-at": "off"
87+
}
8388
}
8489
}

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)