Skip to content

Commit 6805f2e

Browse files
committed
Refactor package.json, tsconfig.json
1 parent ed479a5 commit 6805f2e

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,16 @@
6868
"build": "tsc --build --clean && tsc --build && 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",
71+
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
7272
"test": "npm run generate && 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-
"#": "`n` is wrong",
85-
"rules": {
86-
"n/file-extension-in-import": "off",
87-
"unicorn/prefer-at": "off",
88-
"unicorn/prefer-string-replace-all": "off"
89-
}
77+
"singleQuote": true,
78+
"tabWidth": 2,
79+
"trailingComma": "none",
80+
"useTabs": false
9081
},
9182
"remarkConfig": {
9283
"plugins": [
@@ -96,9 +87,19 @@
9687
"typeCoverage": {
9788
"atLeast": 100,
9889
"detail": true,
99-
"strict": true,
90+
"ignoreCatch": true,
10091
"ignoreFiles": [
10192
"example/**/*.js"
102-
]
93+
],
94+
"strict": true
95+
},
96+
"xo": {
97+
"prettier": true,
98+
"#": "`n` is wrong",
99+
"rules": {
100+
"n/file-extension-in-import": "off",
101+
"unicorn/prefer-at": "off",
102+
"unicorn/prefer-string-replace-all": "off"
103+
}
103104
}
104105
}

tsconfig.json

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

0 commit comments

Comments
 (0)