-
-
Notifications
You must be signed in to change notification settings - Fork 75
Interface produces no-undef errors #437
Comments
Is there workaround for this problem? |
This is resolved in #75 |
Unfortunately, #75 isn't resolution. |
A custom rule will need to be created in the plugin to handle this. It would be fantastic if one of the people affected by this issue could contribute to it. |
Has there been any effort on this? If not, I'd be willing to take a stab - although I have very little experience writing linting rules. Is there somewhere I could look for a good first step? |
Any updates on this? With the new Babel7 TypeScript support this becomes more interesting. |
Alternatively you could disable the rule and just use ts compiler settings to error on unused variables? https://www.typescriptlang.org/docs/handbook/compiler-options.html
|
See comments on similar issue #416 for a few workarounds. Namely, you can safely disable module.exports = {
rules: {
// ... your js rules ...
},
overrides: {
files: ['**/*.ts'],
parser: 'typescript-eslint-parser',
rules: {
'no-undef': 'off'
}
}
} |
* Update: add proper scope analysis (fixes #535) * add computed-properties-in-type fixture * add computed-properties-in-interface fixture * add function-overload fixture * add method-overload fixture * add class-properties fixture * add decorators fixture * update visitor-keys * add declare-global fixture * fix typo * add test for typeof in array destructuring * add namespace fixture * add declare-module fixture * fix crash * add declare-function.ts fixture * add abstract-class fixture * add typeof-in-call-signature fixture * add test for #416 * add test for #435 * add test for #437 * add test for #443 * add test for #459 * add test for #466 * add test for #471 * add test for #487 * add test for #535 * add test for #536 * add test for #476 * fix test to use `expect()`
What version of TypeScript are you using?
2.6.2
What version of
typescript-eslint-parser
are you using?12.0.0
What code were you trying to parse?
What did you expect to happen?
Pass with no errors.
What happened?
The text was updated successfully, but these errors were encountered: