Skip to content

Commit 0084481

Browse files
committed
fix: lint rules
1 parent 4066101 commit 0084481

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.eslintrc.cjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,16 @@ module.exports = {
7373
}
7474
},
7575
{
76-
files: ['packages/vite-plugin-svelte-inspector/src/runtime/load-inspector.js'],
76+
files: [
77+
'packages/vite-plugin-svelte-inspector/src/runtime/load-inspector.js',
78+
'packages/vite-plugin-svelte-inspector/src/runtime/Inspector.svelte'
79+
],
7780
env: {
78-
browser: true
81+
browser: true,
82+
node: false
83+
},
84+
rules: {
85+
'n/no-unsupported-features/node-builtins': 'off'
7986
}
8087
},
8188
{

packages/vite-plugin-svelte-inspector/src/public.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ export interface Options {
7474
base: string;
7575
};
7676
}
77-
77+
// eslint-disable-next-line n/no-missing-import
7878
export * from './index.js';

packages/vite-plugin-svelte/src/public.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,5 @@ export interface VitePreprocessOptions {
204204
*/
205205
style?: boolean | InlineConfig | ResolvedConfig;
206206
}
207-
207+
// eslint-disable-next-line n/no-missing-import
208208
export * from './index.js';

packages/vite-plugin-svelte/src/types/options.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { CompileOptions } from 'svelte/compiler';
22
import type { ViteDevServer } from 'vite';
3+
// eslint-disable-next-line n/no-missing-import
34
import { VitePluginSvelteStats } from '../utils/vite-plugin-svelte-stats.js';
45
import type { Options } from '../public.d.ts';
56

0 commit comments

Comments
 (0)