Skip to content

Commit

Permalink
Add Prettier (#163)
Browse files Browse the repository at this point in the history
* Add prettier and format the project

* Adding precommit hook
  • Loading branch information
thoov committed May 17, 2017
1 parent fd0ae91 commit 67e5512
Show file tree
Hide file tree
Showing 40 changed files with 944 additions and 556 deletions.
16 changes: 0 additions & 16 deletions .editorconfig

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -10,6 +10,7 @@
"consistent-return": 0,
"prefer-rest-params": 0,
"no-param-reassign": 0,
"comma-dangle": ["error", "never"]
"comma-dangle": ["error", "never"],
"arrow-parens": 0
}
}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@ coverage
.DS_Store
npm-debug.log
yarn-error.log
*.orig
3 changes: 1 addition & 2 deletions .npmignore
Expand Up @@ -2,9 +2,8 @@ coverage
tests

.babelrc
.editorconfig
.eslintrc
.npmignore
.nycrc
.travis.yml
webpack.config.js
rollup.config.js
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Travis Hoover
Copyright (c) 2017 Travis Hoover

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 15 additions & 2 deletions README.md
Expand Up @@ -24,7 +24,7 @@ Javascript mocking library for <a href="https://developer.mozilla.org/en-US/docs
## Installation

```shell
npm install mock-socket
yarn add mock-socket --dev
```

## Usage
Expand Down Expand Up @@ -174,9 +174,22 @@ This project uses eslint and a rules set from [airbnb's javascript style guides]
yarn lint
```
### Formatting
This project uses prettier with --single-quote and --print-width 120. To run the formatting:
```shell
yarn format
```
### Code Coverage
Code coverage reports are created in /coverage after all of the tests have successfully passed.
Code coverage reports are created in /coverage after all of the tests have successfully passed. To run the coverage:
```shell
yarn test:coverage
```
## Feedback / Issues
Expand Down

0 comments on commit 67e5512

Please sign in to comment.