Skip to content

Commit 075b8a0

Browse files
committed
added prettier
1 parent 4ed5d34 commit 075b8a0

File tree

4 files changed

+531
-7
lines changed

4 files changed

+531
-7
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "none"
4+
}

bin/precommit.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
# __.-._
4+
# '-._"7' JediFocus
5+
# /'.-c
6+
# | /T Do. Or do not.
7+
# _)_/LI There is no try.
8+
#
9+
# This project is a part of the “Byte-Sized JavaScript” videocasts.
10+
# You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
11+
#
12+
# MIT Licensed — See LICENSE.md
13+
#
14+
# Send your comments, suggestions, and feedback to me@volkan.io
15+
16+
yarn run lint
17+
18+
if [ $? -eq 1 ]
19+
then
20+
echo "Fix lint warnings before commit!"
21+
exit 1
22+
fi
23+
24+
lint-staged

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-jsbites",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Byte-Sized JavaScript Coding Standards",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)