Skip to content

Commit

Permalink
add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Apr 16, 2024
1 parent efb7752 commit a377361
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
7 changes: 7 additions & 0 deletions solarkraft/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 4,
"semi": false,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80
}
22 changes: 22 additions & 0 deletions solarkraft/package-lock.json

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

4 changes: 3 additions & 1 deletion solarkraft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"license": "source-licenser --config-file licenser-config.yaml .",
"snapshot": "git archive --format=tar.gz -o solarkraft-`git rev-parse --short HEAD`.tar.gz --prefix=solarkraft/ HEAD",
"test": "mocha --loader=ts-node/esm test/**/*.test.ts",
"lint": "eslint src test"
"lint": "eslint src test",
"format": "prettier --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' --write"
},
"dependencies": {
"@sweet-monads/either": "^3.3.1",
Expand All @@ -53,6 +54,7 @@
"eslint": "^8.57.0",
"genversion": "^3.2.0",
"mocha": "^10.3.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.6.0"
Expand Down
4 changes: 2 additions & 2 deletions solarkraft/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* [Apache-2.0](https://github.com/freespek/solarkraft/blob/main/LICENSE)
*/
function main() {
console.log("OK")
console.log('OK')
}

main()
main()
2 changes: 1 addition & 1 deletion solarkraft/test/unit/example.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ describe('example test', () => {
it('asserts', () => {
assert.equal(4, 2 + 2)
})
})
})

0 comments on commit a377361

Please sign in to comment.