Skip to content

Commit d2a470f

Browse files
committed
Refactor package.json, tsconfig.json
1 parent d27d04d commit d2a470f

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,37 +64,37 @@
6464
"build": "tsc --build --clean && tsc --build && type-coverage",
6565
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
6666
"test-api": "node --conditions development test/index.js",
67-
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
67+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
6868
"test": "npm run build && npm run format && npm run test-coverage"
6969
},
7070
"prettier": {
71-
"tabWidth": 2,
72-
"useTabs": false,
73-
"singleQuote": true,
7471
"bracketSpacing": false,
7572
"semi": false,
76-
"trailingComma": "none"
77-
},
78-
"xo": {
79-
"prettier": true,
80-
"rules": {
81-
"complexity": "off",
82-
"unicorn/prefer-code-point": "off",
83-
"unicorn/prefer-switch": "off"
84-
}
73+
"singleQuote": true,
74+
"tabWidth": 2,
75+
"trailingComma": "none",
76+
"useTabs": false
8577
},
8678
"remarkConfig": {
8779
"plugins": [
88-
"preset-wooorm"
80+
"remark-preset-wooorm"
8981
]
9082
},
9183
"typeCoverage": {
9284
"atLeast": 100,
9385
"detail": true,
94-
"strict": true,
95-
"ignoreCatch": true,
9686
"ignoreFiles": [
9787
"lib/types.d.ts"
98-
]
88+
],
89+
"ignoreCatch": true,
90+
"strict": true
91+
},
92+
"xo": {
93+
"prettier": true,
94+
"rules": {
95+
"complexity": "off",
96+
"unicorn/prefer-code-point": "off",
97+
"unicorn/prefer-switch": "off"
98+
}
9999
}
100100
}

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"include": ["**/**.js", "index.d.ts"],
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", "index.d.ts"]
1715
}

0 commit comments

Comments
 (0)