Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Add Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCLARITY committed Mar 25, 2020
1 parent 6bf3619 commit df38fc2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
tabWidth: 2,
printWidth: 80,
singleQuote: true,
semi: false,
trailingComma: 'all',
arrowParens: 'always',
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ module.exports = {
},

rules: {
semi: [2, "always"],
semi: [2, 'always'],
},
};
}
11 changes: 10 additions & 1 deletion package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"license": "MIT",
"peerDependencies": {
"eslint": ">= 6"
},
"devDependencies": {
"prettier": "^2.0.2"
}
}

0 comments on commit df38fc2

Please sign in to comment.