File tree 2 files changed +24
-25
lines changed
2 files changed +24
-25
lines changed Original file line number Diff line number Diff line change 59
59
"build" : " tsc --build --clean && tsc --build && type-coverage" ,
60
60
"format" : " remark . -qfo && prettier . -w --log-level warn && xo --fix" ,
61
61
"test-api" : " node --conditions development test/index.js" ,
62
- "test-coverage" : " c8 --check-coverage -- 100 --reporter lcov npm run test-api" ,
62
+ "test-coverage" : " c8 --100 --reporter lcov npm run test-api" ,
63
63
"test" : " npm run build && npm run format && npm run test-coverage"
64
64
},
65
65
"prettier" : {
66
- "tabWidth" : 2 ,
67
- "useTabs" : false ,
68
- "singleQuote" : true ,
69
66
"bracketSpacing" : false ,
70
67
"semi" : false ,
71
- "trailingComma" : " none"
72
- },
73
- "xo" : {
74
- "prettier" : true ,
75
- "rules" : {
76
- "unicorn/prefer-switch" : " off"
77
- },
78
- "overrides" : [
79
- {
80
- "files" : " test/**/*.js" ,
81
- "rules" : {
82
- "no-await-in-loop" : " off"
83
- }
84
- }
85
- ]
68
+ "singleQuote" : true ,
69
+ "tabWidth" : 2 ,
70
+ "trailingComma" : " none" ,
71
+ "useTabs" : false
86
72
},
87
73
"remarkConfig" : {
88
74
"plugins" : [
92
78
"typeCoverage" : {
93
79
"atLeast" : 100 ,
94
80
"detail" : true ,
81
+ "ignoreCatch" : true ,
95
82
"strict" : true
83
+ },
84
+ "xo" : {
85
+ "overrides" : [
86
+ {
87
+ "files" : " test/**/*.js" ,
88
+ "rules" : {
89
+ "no-await-in-loop" : " off"
90
+ }
91
+ }
92
+ ],
93
+ "prettier" : true ,
94
+ "rules" : {
95
+ "unicorn/prefer-switch" : " off"
96
+ }
96
97
}
97
98
}
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" **/**.js" ],
3
- "exclude" : [" coverage/" , " node_modules/" ],
4
2
"compilerOptions" : {
5
3
"checkJs" : true ,
4
+ "customConditions" : [" development" ],
6
5
"declaration" : true ,
7
6
"emitDeclarationOnly" : true ,
8
7
"exactOptionalPropertyTypes" : true ,
9
- "forceConsistentCasingInFileNames" : true ,
10
8
"lib" : [" es2020" ],
11
9
"module" : " node16" ,
12
- "newLine" : " lf" ,
13
- "skipLibCheck" : true ,
14
10
"strict" : true ,
15
11
"target" : " es2020"
16
- }
12
+ },
13
+ "exclude" : [" coverage/" , " node_modules/" ],
14
+ "include" : [" **/*.js" ]
17
15
}
You can’t perform that action at this time.
0 commit comments