Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Confused by no-undef errors on type declarations #110

Closed
@searls

Description

@searls

I'm sure this is me doing it wrong, but I'm a bit confused about how to proceed. I'm invoking this plugin with standard.js via:

$ standard --fix --parser typescript-eslint-parser --plugin typescript "**/*.ts"

If my module looks like this:

import Call from '../value/call'
import Double from '../value/double'

export default interface Demonstration {
  call: Call
  double: Double
}

I get all of these errors:

  /Users/justin/code/testdouble/testdouble.js/src/value/demonstration.ts:4:26: 'Demonstration' is not defined.
  /Users/justin/code/testdouble/testdouble.js/src/value/demonstration.ts:5:3: 'call' is not defined.
  /Users/justin/code/testdouble/testdouble.js/src/value/demonstration.ts:6:3: 'double' is not defined.

I would have figured this plugin's job would be to override the eslint no-undef rule, but to be honest I'm just a bit confused by all the moving parts. Any thoughts would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions