Skip to content

Commit 13ac35c

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 560d61a commit 13ac35c

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,38 +88,38 @@
8888
"build": "tsc --build --clean && tsc --build && type-coverage",
8989
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
9090
"test-api": "node --conditions development test.js",
91-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
91+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
9292
"test": "npm run build && npm run format && npm run test-coverage"
9393
},
9494
"prettier": {
95-
"tabWidth": 2,
96-
"useTabs": false,
97-
"singleQuote": true,
9895
"bracketSpacing": false,
9996
"semi": false,
100-
"trailingComma": "none"
101-
},
102-
"xo": {
103-
"prettier": true,
104-
"rules": {
105-
"unicorn/prefer-code-point": "off",
106-
"unicorn/prefer-string-replace-all": "off"
107-
}
97+
"singleQuote": true,
98+
"tabWidth": 2,
99+
"trailingComma": "none",
100+
"useTabs": false
108101
},
109102
"remarkConfig": {
110103
"plugins": [
111-
"preset-wooorm"
104+
"remark-preset-wooorm"
112105
]
113106
},
114107
"typeCoverage": {
115108
"atLeast": 100,
116109
"detail": true,
117-
"strict": true,
118110
"ignoreCatch": true,
119111
"#": "needed any",
120112
"ignoreFiles": [
121113
"lib/state.d.ts",
122114
"lib/state.js"
123-
]
115+
],
116+
"strict": true
117+
},
118+
"xo": {
119+
"prettier": true,
120+
"rules": {
121+
"unicorn/prefer-code-point": "off",
122+
"unicorn/prefer-string-replace-all": "off"
123+
}
124124
}
125125
}

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)