Skip to content

Commit

Permalink
Cannot redeclare block-scoped variable
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Aug 6, 2023
1 parent 1a1b67c commit 7cd913f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extensions": ["ts"],
"node-option": [
"loader=ts-node/esm"
],
"require": "ts-node/register",
"spec": ["test/**/*-spec.ts"]
}
3 changes: 2 additions & 1 deletion src/frames/frame.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export {}
import * as _ from 'lodash'

Check failure on line 2 in src/frames/frame.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Import in body of module; reorder to top

Check failure on line 2 in src/frames/frame.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Import in body of module; reorder to top
import { MetaFrame, NilContext } from './meta-frame'
import { MetaFrame, NilContext } from '../frames'

Check failure on line 3 in src/frames/frame.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Import in body of module; reorder to top

Check failure on line 3 in src/frames/frame.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Import in body of module; reorder to top

export type Flags = { [key: string]: boolean; };

Expand Down
2 changes: 1 addition & 1 deletion src/frames/meta-frame.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as _ from 'lodash'
import { Frame } from './frame'
import { Frame } from '../frames'

export interface ISourced extends Frame {
source: string;
Expand Down
2 changes: 0 additions & 2 deletions test/execute/eval-pipe-spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { expect } from 'chai'
import {} from 'mocha'
import { EvalPipe } from '../../src/execute/eval-pipe'
import * as lex from '../../src/execute/lex-pipe'
import * as parse from '../../src/execute/parse-pipe'
import * as frame from '../../src/frames'

describe('EvalPipe', () => {
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"compilerOptions": {
"declaration": true,
"declaration": false,
"esModuleInterop": true,
"lib": ["es6"],
"module": "commonjs",
"target": "ESNext",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitAny": false,
"outDir": "./lib",
"preserveConstEnums": true,
"removeComments": true,
"skipLibCheck": true,
},
"include": [
"src/**/*.ts"
Expand Down

0 comments on commit 7cd913f

Please sign in to comment.