Skip to content

Commit c564397

Browse files
authored
chore: add .c8rc file (#224)
* chore: add `.c8rc` file * add `"src/build/"` to global ignores
1 parent 8ee9da0 commit c564397

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
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: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,21 @@ const eslintPluginTestsRecommendedConfig =
3131
//-----------------------------------------------------------------------------
3232

3333
export default defineConfig([
34-
globalIgnores(["**/tests/fixtures/", "**/dist/", "test.css"]),
34+
globalIgnores([
35+
"**/tests/fixtures/",
36+
"**/dist/",
37+
"test.css",
38+
"coverage/",
39+
"src/build/",
40+
]),
3541

3642
...eslintConfigESLint.map(config => ({
3743
files: ["**/*.js"],
3844
...config,
3945
})),
4046
{
4147
plugins: { json },
42-
files: ["**/*.json"],
43-
ignores: ["**/package-lock.json"],
48+
files: ["**/*.json", ".c8rc"],
4449
language: "json/json",
4550
extends: ["json/recommended"],
4651
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"fmt": "prettier --write .",
7272
"fmt:check": "prettier --check .",
7373
"test": "mocha tests/**/*.js",
74-
"test:jsr": "npx jsr@latest publish --dry-run",
7574
"test:coverage": "c8 npm test",
75+
"test:jsr": "npx jsr@latest publish --dry-run",
7676
"test:types": "npm run build && tsc -p tests/types/tsconfig.json"
7777
},
7878
"keywords": [
@@ -90,7 +90,7 @@
9090
},
9191
"devDependencies": {
9292
"@eslint/json": "^0.13.0",
93-
"c8": "^9.1.0",
93+
"c8": "^10.1.3",
9494
"compute-baseline": "^0.3.1",
9595
"dedent": "^1.5.3",
9696
"eslint": "^9.31.0",

0 commit comments

Comments
 (0)