diff --git a/.editorconfig b/.editorconfig index 4806061a..8119e5bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,10 +6,10 @@ root = true [*] indent_style = space indent_size = 4 -end_of_line = crlf +end_of_line = lf charset = utf-8 -trim_trailing_whitespace = false -insert_final_newline = false +trim_trailing_whitespace = true +insert_final_newline = true [*.ts] quote_type = single diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.npmignore b/.npmignore index f41f7440..576f6c2e 100644 --- a/.npmignore +++ b/.npmignore @@ -9,4 +9,4 @@ MIGRATION.md scripts/ src/ tsconfig.implementations.json -tsconfig.json \ No newline at end of file +tsconfig.json diff --git a/dprint.json b/dprint.json index 36b2c5cd..99808877 100644 --- a/dprint.json +++ b/dprint.json @@ -6,7 +6,7 @@ "semiColons": "prefer", "quoteStyle": "alwaysSingle", "quoteProps": "preserve", - "newLineKind": "crlf", + "newLineKind": "lf", "useBraces": "always", "bracePosition": "sameLineUnlessHanging", "singleBodyPosition": "maintain", diff --git a/src/style-mod/style-mod.d.cts.dist b/src/style-mod/style-mod.d.cts.dist index b323101e..bdeff955 100644 --- a/src/style-mod/style-mod.d.cts.dist +++ b/src/style-mod/style-mod.d.cts.dist @@ -6,7 +6,7 @@ * node_modules/@codemirror/view/dist/index.d.cts:3:40 - error TS7016: Could not find a declaration file for module 'style-mod'. 'F:/dev/projects/obsidian-typings/node_modules/style-mod/dist/style-mod.cjs' implicitly has an 'any' type. * If the 'style-mod' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'style-mod';` * import { StyleModule, StyleSpec } from 'style-mod'; - * + * * @note `export {}` omitted intentionally. This is needed only for dist */