Skip to content

Commit aa53adb

Browse files
authored
chore: add .c8rc file (#127)
1 parent 2a0e1d9 commit aa53adb

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.c8rc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"include": ["src/**/*.js"],
3+
"reporter": ["lcov", "text-summary", "cobertura"],
4+
"sourceMap": true
5+
}

eslint.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,20 @@ const eslintPluginTestsRecommendedConfig =
3030
//-----------------------------------------------------------------------------
3131

3232
export default defineConfig([
33-
globalIgnores(["**/tests/fixtures/", "**/dist/"]),
33+
globalIgnores([
34+
"**/tests/fixtures/",
35+
"**/dist/",
36+
"coverage/",
37+
"src/build/",
38+
]),
3439

3540
...eslintConfigESLint.map(config => ({
3641
files: ["**/*.js"],
3742
...config,
3843
})),
3944
{
4045
plugins: { json },
41-
files: ["**/*.json"],
42-
ignores: ["**/package-lock.json"],
46+
files: ["**/*.json", ".c8rc"],
4347
language: "json/json",
4448
extends: ["json/recommended"],
4549
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
"fmt": "prettier --write .",
7171
"fmt:check": "prettier --check .",
7272
"test": "mocha tests/**/*.js",
73-
"test:jsr": "npx jsr@latest publish --dry-run",
7473
"test:coverage": "c8 npm test",
74+
"test:jsr": "npx jsr@latest publish --dry-run",
7575
"test:types": "tsc -p tests/types/tsconfig.json"
7676
},
7777
"keywords": [

0 commit comments

Comments
 (0)