xlsx: Linter: Require interfaces to start with 'I'

The default rule for DT is that they're *not*,
but changing that now would break existing usages of the xlsx typings.
This commit is contained in:
Wolfgang Faust 2017-05-12 17:46:54 -04:00
parent cda05f3b45
commit 8385d5c889
2 changed files with 8 additions and 3 deletions

@ -1 +1,6 @@
{ "extends": "dtslint/dt.json" }
{
"extends": "dtslint/dt.json",
"rules": {
"interface-name": [true, "always-prefix"]
}
}

@ -15,11 +15,11 @@ const firstworksheet = workbook.Sheets[firstsheet];
console.log(firstworksheet["A1"]);
interface tester {
interface ITester {
name: string;
age: number;
}
const jsonvalues: tester[] = xlsx.utils.sheet_to_json<tester>(firstworksheet);
const jsonvalues: ITester[] = xlsx.utils.sheet_to_json<ITester>(firstworksheet);
const csv = xlsx.utils.sheet_to_csv(firstworksheet);
const formulae = xlsx.utils.sheet_to_formulae(firstworksheet);