Skip to content

Commit c48b4cc

Browse files
committed
Update .gitattributes/eslint.config.mjs, combine conditions
1 parent e97c476 commit c48b4cc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: .gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################################################################
22
# Set default behavior to automatically normalize line endings.
33
###############################################################################
4-
* text=auto
4+
* text=auto eol=lf
55

66
###############################################################################
77
# Set default behavior for command prompt diff.

Diff for: eslint.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export default typescriptEslint.config(
2222
"@typescript-eslint/no-explicit-any": 0,
2323
"@typescript-eslint/no-non-null-assertion": 0,
2424
"@typescript-eslint/no-var-requires": 0,
25-
"prettier/prettier": ["error", { "endOfLine": "auto" }] // match .gitattributes
2625
},
2726
},
2827
);

Diff for: src/build/emitter.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,12 @@ export function emitWebIdl(
415415
.map(convertDomTypeToTsType)
416416
.join(", ");
417417

418-
if (!subtypeString && compilerBehavior.useGenericTypedArrays) {
419-
if (arrayBufferViewTypes.has(type)) {
420-
subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer";
421-
}
418+
if (
419+
!subtypeString &&
420+
compilerBehavior.useGenericTypedArrays &&
421+
arrayBufferViewTypes.has(type)
422+
) {
423+
subtypeString = obj.allowShared ? "ArrayBufferLike" : "ArrayBuffer";
422424
}
423425

424426
return type === "Array" && subtypeString

0 commit comments

Comments
 (0)