Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 24, 2024
1 parent 4b2a084 commit 2f41099
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist
build
coverage
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["src/**/*.ts"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"outDir": "build",
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
Expand Down
6 changes: 5 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import {defineConfig} from 'vitest/config';

// Tests run on the 'build' output and remap to 'src' with source maps, so we iclude both paths in
// coverage. Istanbul's `config.excludeAfterRemap` option is not exposed by Vitest, so bundled
// dependencies may be shown in the coverage report. Ignore those for now, as we expect bundling
// these dependencies to be temporary. See: https://github.com/vitest-dev/vitest/discussions/5964.
export default defineConfig({
test: {
coverage: {
provider: 'istanbul',
include: ['src/**/*.ts', 'build/**/*'],
include: ['src/**/*', 'build/**/*'],
},
},
});

0 comments on commit 2f41099

Please sign in to comment.