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

Commit 95a8380

Browse files
committed
add test for #536
1 parent 81f4f30 commit 95a8380

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/lib/scope-analysis.js

+22
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,26 @@ function foo({ bar }: { bar: string }) {
330330

331331
assert.deepStrictEqual(messages, []);
332332
});
333+
334+
test("https://github.com/eslint/typescript-eslint-parser/issues/535", () => {
335+
const code = `
336+
import {
337+
observable,
338+
} from 'mobx';
339+
340+
export default class ListModalStore {
341+
@observable
342+
orderList: IObservableArray<BizPurchaseOrderTO> = observable([]);
343+
}
344+
`;
345+
const config = {
346+
parser: "typescript-eslint-parser",
347+
rules: {
348+
"no-unused-vars": "error"
349+
}
350+
};
351+
const messages = linter.verify(code, config, { filename: "issue.ts" });
352+
353+
assert.deepStrictEqual(messages, []);
354+
});
333355
});

0 commit comments

Comments
 (0)