Skip to content

Commit 80a833b

Browse files
committed
Refactor package.json, tsconfig.json
1 parent e23d678 commit 80a833b

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,32 @@
6868
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
6969
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
7070
"test-api": "node --conditions development test/index.js",
71-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
72-
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
71+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
72+
"test": "npm run build && npm run format && npm run test-coverage"
7373
},
7474
"prettier": {
75-
"tabWidth": 2,
76-
"useTabs": false,
77-
"singleQuote": true,
7875
"bracketSpacing": false,
7976
"semi": false,
80-
"trailingComma": "none"
81-
},
82-
"xo": {
83-
"prettier": true,
84-
"rules": {
85-
"n/file-extension-in-import": "off"
86-
}
77+
"singleQuote": true,
78+
"tabWidth": 2,
79+
"trailingComma": "none",
80+
"useTabs": false
8781
},
8882
"remarkConfig": {
8983
"plugins": [
90-
"preset-wooorm"
84+
"remark-preset-wooorm"
9185
]
9286
},
9387
"typeCoverage": {
9488
"atLeast": 100,
9589
"detail": true,
90+
"ignoreCatch": true,
9691
"strict": true
92+
},
93+
"xo": {
94+
"prettier": true,
95+
"rules": {
96+
"n/file-extension-in-import": "off"
97+
}
9798
}
9899
}

tsconfig.json

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
{
2-
"include": ["**/**.js", "**/**.jsx"],
3-
"exclude": [
4-
"coverage/",
5-
"node_modules/",
6-
"lib/jsx-automatic.js",
7-
"lib/jsx-classic.js"
8-
],
92
"compilerOptions": {
103
"checkJs": true,
4+
"customConditions": ["development"],
115
"declaration": true,
126
"emitDeclarationOnly": true,
137
"exactOptionalPropertyTypes": true,
14-
"forceConsistentCasingInFileNames": true,
8+
"jsx": "preserve",
159
"lib": ["es2020"],
1610
"module": "node16",
17-
"newLine": "lf",
18-
"skipLibCheck": true,
1911
"strict": true,
20-
"target": "es2020",
21-
"jsx": "preserve"
22-
}
12+
"target": "es2020"
13+
},
14+
"exclude": [
15+
"coverage/",
16+
"node_modules/",
17+
"lib/jsx-automatic.js",
18+
"lib/jsx-classic.js"
19+
],
20+
"include": ["**/*.js", "**/*.jsx"]
2321
}

0 commit comments

Comments
 (0)