Skip to content

Commit

Permalink
chore: lint + add node types
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 1, 2024
1 parent 42b8f38 commit 275c2b6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 25 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
export default antfu().append({ rules: { 'antfu/no-top-level-await': 'off' } })
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "latest",
"@types/node": "^22.7.4",
"@vitest/coverage-v8": "latest",
"bumpp": "latest",
"eslint": "latest",
Expand Down
56 changes: 37 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createUnplugin } from 'unplugin'
import { createFilter } from '@rollup/pluginutils'
import { resolvePath } from 'mlly'
import { isAbsolute, join, relative } from 'pathe'
import { createFilter } from '@rollup/pluginutils'
import { createUnplugin } from 'unplugin'

export interface ImpoundOptions {
/** An array of patterns of importers to apply the import protection rules to. */
Expand Down
6 changes: 3 additions & 3 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it } from 'vitest'
import { rollup } from 'rollup'
import type { RollupError } from 'rollup'
import { ImpoundPlugin } from '../src'
import type { ImpoundOptions } from '../src'
import { rollup } from 'rollup'
import { describe, expect, it } from 'vitest'
import { ImpoundPlugin } from '../src'

describe('impound plugin', () => {
const code = (id: string) => `import thing from "${id}";console.log(thing)`
Expand Down

0 comments on commit 275c2b6

Please sign in to comment.