Skip to content

Commit f333232

Browse files
committed
Refactor package.json, tsconfig.json
1 parent bd06667 commit f333232

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,29 @@
6060
"build": "tsc --build --clean && tsc --build && type-coverage",
6161
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6262
"test-api": "node --conditions development test.js",
63-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
63+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6464
"test": "npm run build && npm run format && npm run test-coverage"
6565
},
6666
"prettier": {
67-
"tabWidth": 2,
68-
"useTabs": false,
69-
"singleQuote": true,
7067
"bracketSpacing": false,
7168
"semi": false,
72-
"trailingComma": "none"
73-
},
74-
"xo": {
75-
"prettier": true
69+
"singleQuote": true,
70+
"tabWidth": 2,
71+
"trailingComma": "none",
72+
"useTabs": false
7673
},
7774
"remarkConfig": {
7875
"plugins": [
79-
"preset-wooorm"
76+
"remark-preset-wooorm"
8077
]
8178
},
8279
"typeCoverage": {
8380
"atLeast": 100,
8481
"detail": true,
85-
"strict": true,
86-
"ignoreCatch": true
82+
"ignoreCatch": true,
83+
"strict": true
84+
},
85+
"xo": {
86+
"prettier": true
8787
}
8888
}

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)