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

Commit

Permalink
add test for #536
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Nov 8, 2018
1 parent 81f4f30 commit 95a8380
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/lib/scope-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,4 +330,26 @@ function foo({ bar }: { bar: string }) {

assert.deepStrictEqual(messages, []);
});

test("https://github.com/eslint/typescript-eslint-parser/issues/535", () => {
const code = `
import {
observable,
} from 'mobx';
export default class ListModalStore {
@observable
orderList: IObservableArray<BizPurchaseOrderTO> = observable([]);
}
`;
const config = {
parser: "typescript-eslint-parser",
rules: {
"no-unused-vars": "error"
}
};
const messages = linter.verify(code, config, { filename: "issue.ts" });

assert.deepStrictEqual(messages, []);
});
});

0 comments on commit 95a8380

Please sign in to comment.