hound icon indicating copy to clipboard operation
hound copied to clipboard

Hound passes without violations when using @typescript-eslint/parser

Open robertmaloney opened this issue 5 years ago • 1 comments

In our repo we have .hound.yml configured to run ESLint:

fail_on_violations: true

ruby:
  config_file: .rubocop.yml
  version: 0.63.0

javascript:
  enabled: false

eslint:
  config_file: .eslintrc.json
  version: 6.3.0
  enabled: true

scss:
  config_file: .scss-lint.yml

Additionally we have .eslintrc.json configured to parse using @typescript-eslint/parser, as well as the plugins necessary to check against typescript rules within ESLint. The observed behavior is that, when using that parser, HoundCI passes even with a small set of violations normally caught locally. This issue is resolved when switching to using the babel-eslint parser. Eventually we'd like to use the TS-ESlint parser for its formal support of type-based rules and the long-term EOL of TSLint.

Dependencies:

[email protected]
@typescript-eslint/[email protected]
@typescript-eslint/[email protected]

Subset of ESLint rules tested with (just as an example):

object-curly-spacing
quote-props
array-bracket-spacing
comma-dangle
brace-style
space-before-blocks

robertmaloney avatar Aug 21 '20 22:08 robertmaloney

Is this issue fixed? i am still experiencing the same issue using @typescript-eslint/parser with eslint v7.7.0

yidingww avatar Aug 10 '21 08:08 yidingww