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

Current typescript ruleset requires eslint-plugin-typescript as a "peer" dependency #47

Closed
@behalka

Description

@behalka

Steps to reproduce:

  • I installed ruleset with this .eslintrc.js configuration:
'use strict'

module.exports = {
  parser: '@typescript-eslint/parser',
  plugins: ['@typescript-eslint'],

  extends: [
    '@strv/javascript/environments/nodejs/v10',
    '@strv/javascript/environments/nodejs/optional',
    '@strv/javascript/environments/typescript/recommended',
    '@strv/javascript/coding-styles/recommended',
  ],
}
  • I got this error:
Failed to load plugin typescript: Cannot find module 'eslint-plugin-typescript' ...
  • If I comment out the ruleset with typescript, eslint works :)

The @typescript-eslint library went under some changes and the eslint-plugin-typescript was required before so I suppose it's only needed to bump some dependencies in our library :) Hope this helps.

Current workaround now is to install eslint-plugin-typescript as a dev dependency into my project and everything works :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions