Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 14, 2022
1 parent 38fe129 commit 893c86c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .config/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
**/.vs

# Turn this back on once supported by Prettier
../src/test/converter2/behavior/instantiationExpressions.ts
../src/test/converter/types/general.ts
../src/test/converter/class/getter-setter.ts
../src/test/converter/variables/variable.ts
../src/test/converter2/behavior/hiddenAccessor.ts
5 changes: 5 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@
"src/test/renderer/specs",
"dist",
"docs",
"tmp",
"coverage",
"static/main.js",
"src/lib/output/themes/default/assets",
"node_modules",
// Temporarily ignored until eslint supports TS 4.9
"src/test/converter/class/getter-setter.ts",
"src/test/converter/variables/variable.ts",
"src/test/converter2/behavior/hiddenAccessor.ts",
// Would be nice to lint these, but they shouldn't be included in the project,
// so we need a second eslint config file.
"example",
Expand Down
10 changes: 6 additions & 4 deletions src/test/converter/types/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export type BigIntAlias = bigint;
export type NegativeOne = -1;
export const negativeOne = -1;

export type FirstIfString<T extends unknown[]> =
T extends [infer S extends string, ...unknown[]]
? S
: never;
export type FirstIfString<T extends unknown[]> = T extends [
infer S extends string,
...unknown[]
]
? S
: never;
2 changes: 1 addition & 1 deletion src/test/converter2/behavior/instantiationExpressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* Not quite the same, since the instantiation expression does not cause
* a type to be created with the same name.
*/
export const StringSet = Set<string>
export const StringSet = Set<string>;

0 comments on commit 893c86c

Please sign in to comment.