Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prettier for code formatting #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .bithoundrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@
"limit": 40000
}
},
"test": [
"tests/**",
"test/**",
"doc/**"
]
"test": ["tests/**", "test/**", "doc/**"]
}
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
env:
es6: true
node: true
extends: 'eslint:recommended'
extends:
- eslint:recommended
- plugin:prettier/recommended
rules:
indent:
- error
Expand Down
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": [".bithoundrc", ".prettierrc"],
"options": { "parser": "json" }
}
]
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- "6"
- "7"
- "8"
- '6'
- '7'
- '8'
script:
- npm test
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ $ npm install namespace

## Objects to store in namespace

- algorithms
- data structures
- modules
- components
- tools
- algorithms
- data structures
- modules
- components
- tools

## Contributors

- Timur Shemsedinov (marcusaurelius)
- See github for full [contributors list](https://github.com/metarhia/metasync/graphs/contributors)
- Timur Shemsedinov (marcusaurelius)
- See github for full [contributors list](https://github.com/metarhia/metasync/graphs/contributors)
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';

module.exports = {
};
module.exports = {};
4 changes: 1 addition & 3 deletions namespace.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

const submodules = [
'main',
].map(path => './lib/' + path).map(require);
const submodules = ['main'].map(path => './lib/' + path).map(require);

module.exports = Object.assign({}, ...submodules);
Loading