Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Dec 1, 2022
1 parent 10072e2 commit 8fd1960
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
23 changes: 23 additions & 0 deletions examples/one.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const obj = {
one: 1,
two: 2,
three: 3,
}

;('this config avoids semicolons at the end of statements and uses single quotes for strings')

async function heresAFunctionWhichSpansMulitpleLinesAnd(
that,
includes,
many,
args,
to,
demonstrait,
trailing,
func,
commas
) {
return obj
}

const arrowFunctions = avoidParens => 1
28 changes: 27 additions & 1 deletion package-lock.json

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

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"author": "GitHub Inc.",
"main": "index.js",
"scripts": {
"test:update": "prettier --config ./index.js --write examples/",
"test": "prettier --config ./index.js --check examples/",
"postpublish": "npm publish --ignore-scripts --@github:registry='https://npm.pkg.github.com'"
},
"devDependencies": {
"prettier": "^2.8.0"
}
}

0 comments on commit 8fd1960

Please sign in to comment.