Skip to content

Commit e429ed8

Browse files
committed
Refactor package.json, tsconfig.json
1 parent 5737899 commit e429ed8

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,33 +56,33 @@
5656
"build": "tsc --build --clean && tsc --build && tsd && type-coverage",
5757
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
5858
"test-api": "node --conditions development test/index.js",
59-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
59+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6060
"test": "npm run build && npm run format && npm run test-coverage"
6161
},
6262
"prettier": {
63-
"tabWidth": 2,
64-
"useTabs": false,
65-
"singleQuote": true,
6663
"bracketSpacing": false,
6764
"semi": false,
68-
"trailingComma": "none"
69-
},
70-
"xo": {
71-
"prettier": true
65+
"singleQuote": true,
66+
"tabWidth": 2,
67+
"trailingComma": "none",
68+
"useTabs": false
7269
},
7370
"remarkConfig": {
7471
"plugins": [
75-
"preset-wooorm"
72+
"remark-preset-wooorm"
7673
]
7774
},
7875
"typeCoverage": {
7976
"atLeast": 100,
8077
"detail": true,
81-
"strict": true,
8278
"ignoreCatch": true,
83-
"#": "Couple of needed any’s",
79+
"#": "Couple of needed any’s",
8480
"ignoreFiles": [
8581
"lib/index.d.ts"
86-
]
82+
],
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy