Skip to content

Commit 45980b5

Browse files
committed
Fix lint issues
1 parent 0a5ea57 commit 45980b5

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
'dist',
1919
'perf',
2020
'tmp',
21+
'coverage',
2122
'_tmp',
2223
'cache',
2324
'/test/*/samples/**/*.*',

docs/repl/components/ReplOutput.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
</template>
1414

1515
<script setup lang="ts">
16-
import type { OutputChunk } from 'rollup';
1716
import { computed } from 'vue';
1817
import type { Module } from '../../types';
1918
import { useRollupOutput } from '../stores/rollupOutput';
@@ -25,7 +24,7 @@ import RollupVersion from './RollupVersion.vue';
2524
const rollupOutputStore = useRollupOutput();
2625
const chunkModules = computed<Module[]>(() =>
2726
rollupOutputStore.output.output.map(chunk => ({
28-
code: chunk.code || chunk.source,
27+
code: 'code' in chunk ? chunk.code : String(chunk.source),
2928
isEntry: false,
3029
name: chunk.fileName
3130
}))

src/ast/nodes/CallExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import type SpreadElement from './SpreadElement';
2121
import type Super from './Super';
2222
import CallExpressionBase from './shared/CallExpressionBase';
2323
import { type ExpressionEntity, UNKNOWN_RETURN_EXPRESSION } from './shared/Expression';
24-
import type { ChainElement } from './shared/Node';
25-
import { type ExpressionNode, INCLUDE_PARAMETERS, type IncludeChildren } from './shared/Node';
24+
import { INCLUDE_PARAMETERS } from './shared/Node';
25+
import type { ChainElement, ExpressionNode, IncludeChildren } from './shared/Node';
2626

2727
export default class CallExpression
2828
extends CallExpressionBase

src/ast/nodes/MemberExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import {
4141
UNKNOWN_RETURN_EXPRESSION,
4242
UnknownValue
4343
} from './shared/Expression';
44-
import type { ChainElement } from './shared/Node';
45-
import { type ExpressionNode, type IncludeChildren, NodeBase } from './shared/Node';
44+
import { NodeBase } from './shared/Node';
45+
import type { ChainElement, ExpressionNode, IncludeChildren } from './shared/Node';
4646

4747
// To avoid infinite recursions
4848
const MAX_PATH_DEPTH = 7;

src/ast/nodes/UpdateExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { EMPTY_PATH, type ObjectPath } from '../utils/PathTracker';
1212
import Identifier from './Identifier';
1313
import * as NodeType from './NodeType';
1414
import { UNKNOWN_EXPRESSION } from './shared/Expression';
15-
import type { IncludeChildren } from './shared/Node';
16-
import { type ExpressionNode, NodeBase } from './shared/Node';
15+
import { NodeBase } from './shared/Node';
16+
import type { ExpressionNode, IncludeChildren } from './shared/Node';
1717

1818
export default class UpdateExpression extends NodeBase {
1919
declare argument: ExpressionNode;

0 commit comments

Comments
 (0)