forked from sheetjs/sheetjs
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:
parent
cda05f3b45
commit
8385d5c889
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user