mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
run linting on travis, document code style
This commit is contained in:
parent
b61822e30c
commit
afcb9f3625
@ -27,6 +27,7 @@ before_script:
|
|||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- npm run lint
|
||||||
- export ETH_PORT=18545; npm run test:cover
|
- export ETH_PORT=18545; npm run test:cover
|
||||||
- npm run build
|
- npm run build
|
||||||
- npm run doc
|
- npm run doc
|
||||||
|
13
README.md
13
README.md
@ -25,6 +25,7 @@
|
|||||||
- [Testing](#Testing)
|
- [Testing](#Testing)
|
||||||
- [Unit Tests](#Unit-Tests)
|
- [Unit Tests](#Unit-Tests)
|
||||||
- [Integration Tests](#Integration-Tests)
|
- [Integration Tests](#Integration-Tests)
|
||||||
|
- [Code Style](#Code-Style)
|
||||||
- [Production build](#Production-build)
|
- [Production build](#Production-build)
|
||||||
- [Releases](#Releases)
|
- [Releases](#Releases)
|
||||||
- [License](#License)
|
- [License](#License)
|
||||||
@ -157,6 +158,18 @@ to generate code coverage information during test, run:
|
|||||||
npm run integration:cover
|
npm run integration:cover
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Code Style
|
||||||
|
|
||||||
|
Project follows [eslint-config-oceanprotocol](https://github.com/oceanprotocol/eslint-config-oceanprotocol). For linting and auto-formatting you can use:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# lint all ts with eslint
|
||||||
|
npm run lint
|
||||||
|
|
||||||
|
# auto format all ts with prettier, taking all configs into account
|
||||||
|
npm run format
|
||||||
|
```
|
||||||
|
|
||||||
## Production build
|
## Production build
|
||||||
|
|
||||||
To create a production build:
|
To create a production build:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user