uber-archive / lint-trap

JavaScript linter module for Uber projects
26 stars 2 forks source link

Turn off W002 and no-catch-shadow #83

Closed ross- closed 9 years ago

ross- commented 9 years ago

We don't need these rules as we don't support IE8 and earlier. They're also duplicates.

    warning  eslint    90:14   Value of 'error' may be overwritten in IE 8 and earlier.  no-catch-shadow
    warning  eslint   105:18   Value of 'error' may be overwritten in IE 8 and earlier.  no-catch-shadow
    warning  eslint   142:14   Value of 'error' may be overwritten in IE 8 and earlier.  no-catch-shadow
    warning  jshint    90:27   Value of 'error' may be overwritten in IE 8 and earlier.  W002
    warning  jshint   105:31   Value of 'error' may be overwritten in IE 8 and earlier.  W002
    warning  jshint   142:27   Value of 'error' may be overwritten in IE 8 and earlier.  W002
Raynos commented 9 years ago

:+1:

andrewdeandrade commented 9 years ago

Unfortunately JSHint has no rule to disable this, so I had to create a hack for this.

andrewdeandrade commented 9 years ago

Fixed by https://github.com/uber/lint-trap/pull/88