Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

tslint is going crazy when installed via yarn 1.1.0 #3277

Closed
Hotell opened this issue Oct 4, 2017 · 2 comments
Closed

tslint is going crazy when installed via yarn 1.1.0 #3277

Hotell opened this issue Oct 4, 2017 · 2 comments

Comments

@Hotell
Copy link

Hotell commented Oct 4, 2017

Bug Report

  • TSLint version: 5.7.0
  • TypeScript version: 2.2.2
  • Running TSLint via: (pick one) CLI

TypeScript code being linted

function createSpacebarKeypressEvent() {
    return new KeyboardEvent(
      'keypress',
      {
        keyCode: 32,
        which: 32,
        charCode: 32,
      } as any
    )
  }

image

havoc follows:

image

with tslint.json configuration:

{
  "extends": [
    "tslint:latest"
  ],
  "jsRules": {},
  "rulesDirectory": [],
  "rules": {}
}

Actual behavior

when we switched to latest yarn 1.1.0 all builds started to fail on described tslint super weird errors

with npm install everything works as expected

Expected behavior

no errors

@adidahiya
Copy link
Contributor

I'd prefer to keep the discussion to #3251; do you think this is materially different? The fix will likely be the same for both issues.

@Hotell
Copy link
Author

Hotell commented Oct 4, 2017

fair enough, although #3251 has kinda confusing title ... :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants