Skip to content

no-unpublished-import no longer throws an error by default #887

@IchordeDionysos

Description

@IchordeDionysos

Steps to reproduce:

  1. Run npx gts init
  2. Use default options
  3. Add the following code at the top of index.ts
import * as gts from 'gts';
  1. Run npm run lint

Expected behaviour

It throws an error:

1:22  error  "gts" is not published  n/no-unpublished-import

Actual behaviour

There is no error being thrown.

Additional information

When adding src to the files array in the package.json, the behaviour is fixed, though it is debatable whether this is a desirable fix.

  "files": [
    "build/src",
    "src"
  ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions