Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #81 from CoinAlpha/refactor/architecture_redesign-…
Browse files Browse the repository at this point in the history
…es_lint

Refactor/architecture redesign es lint
  • Loading branch information
dennisocana committed Jun 8, 2021
2 parents e07e135 + d847402 commit eecf4a4
Show file tree
Hide file tree
Showing 41 changed files with 9,615 additions and 8,139 deletions.
6 changes: 2 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"presets": [
"@babel/preset-env"
]
}
"presets": ["@babel/preset-env"]
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# turn off specific file for eslint
/node_modules
21 changes: 12 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
module.exports = {
extends: 'standard',
extends: ['eslint:recommended', 'prettier'],
parser: 'babel-eslint',
plugins: ['prettier'],
env: {
node: true,
es6: true
},
rules: {
// disable semicolon check
semi: 'off',

// override default options for rules from base configurations
'comma-dangle': 'off',

// disable rules from base configurations
'no-console': 'off',
'comma-dangle': ['error', 'never'],
'no-multi-spaces': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prettier/prettier': 'error',
semi: [2, 'always']
}
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
certs
*.md
*.yml
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Hummingbot Gateway is an open-source project that integrates cryptocurrency trad

We created hummingbot to promote **decentralized market-making**: enabling members of the community to contribute to the liquidity and trading efficiency in cryptocurrency markets.



## Getting Started

### Learn more about Hummingbot
Expand Down Expand Up @@ -46,3 +44,20 @@ Hummingbot Gateway was created and is maintained by CoinAlpha, Inc. We are [a gl
## Legal

- **License**: Hummingbot is licensed under [Apache 2.0](./LICENSE).

## Development

This repo uses `eslint` and `prettier`. When you run `git commit` it will trigger the `pre-commit` hook.
This will run `eslint` on the `src` and `test` directories.

You can lint before committing with:

```bash
yarn run lint
```

You can run the prettifier before committing with:

```bash
yarn run prettier
```
Loading

0 comments on commit eecf4a4

Please sign in to comment.