Skip to content

Commit

Permalink
Add back @sondr3/prettier, add .gitattributes/.editorconfig for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Jan 3, 2022
1 parent ee3d21c commit 0cd6a9f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
* text=auto eol=lf
6 changes: 1 addition & 5 deletions lib/index.ts
Expand Up @@ -20,11 +20,7 @@ export function test(opts: TestNoFn, fn: TestFn): void;
export function test(name: string, fn: TestFn): void;
export function test(name: string, fn: TestFn, options?: TestOptions): void;

export function test(
fnNameOrOpts: TestFn | TestNoFn | string,
fn?: TestFn,
opts?: TestOptions
): void {
export function test(fnNameOrOpts: TestFn | TestNoFn | string, fn?: TestFn, opts?: TestOptions): void {
let test;

if (typeof fnNameOrOpts === "function") {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -34,8 +34,10 @@
"url": "https://github.com/sondr3/minitest/issues"
},
"homepage": "https://github.com/sondr3/minitest#readme",
"prettier": "@sondr3/prettier",
"devDependencies": {
"@sondr3/eslint-config": "0.7.1",
"@sondr3/prettier": "0.5.1",
"@sondr3/tsconfig": "0.7.0",
"@types/node": "17.0.6",
"@typescript-eslint/eslint-plugin": "5.8.1",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0cd6a9f

Please sign in to comment.