Skip to content

Commit 0e94425

Browse files
committed
style: lint fix
1 parent 5117c3d commit 0e94425

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import config from '@pengzhanbo/eslint-config'
33
export default config({
44
pnpm: true,
55
vue: false,
6+
typescript: {
7+
erasableOnly: true,
8+
},
69
}, {
710
files: ['**/*.md/*.ts'],
811
rules: {

vite-plugin-mock-dev-server/src/compiler/compiler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ export class Compiler extends EventEmitter {
2727
private isESM = false
2828

2929
private _mockData: Record<string, MockOptions> = {}
30+
options!: ResolvedMockServerPluginOptions
3031

31-
constructor(public options: ResolvedMockServerPluginOptions) {
32+
constructor(options: ResolvedMockServerPluginOptions) {
3233
super()
34+
this.options = options
3335
this.cwd = options.cwd || process.cwd()
3436
try {
3537
const pkg = loadPackageJSONSync(this.cwd)

0 commit comments

Comments
 (0)