open-index/open-npm huggingface dataset:
npm package: @lamiaoy/eslint-config
Description: ESLint base config for Lamia projects
Latest version: 3.0.0

# @lamiaoy/eslint-config

Base [ESLint](https://eslint.org/) config for Lamia projects

## Install

With [npm](https://www.npmjs.com/package/@lamiaoy/eslint-config) do:
```bash
npm install -D @lamiaoy/eslint-config
```

Create a `.eslintrc.js` to your project root with the following contents:
```javascript
module.exports = {
    extends: '@lamiaoy/eslint-config'
};
```

Make sure you don't have any existing configs (`.eslintrc.js`, `.eslintrc.yml`, `.eslintrc.json` or similar).
If you do, first merge their configurations into the new `.eslintrc.js`, and remove them afterwards.

Assuming ESLint is configured correctly, it should automatically pick up the new config.

## Usage

You can configure PhpStorm to show lint errors in the IDE.

You should also add a convenience command to your `package.json`
```text
...
"scripts": {
    "lint": "npm run lint:js && npm run lint:css"
    "lint:js": "eslint src/",
    "lint:css": "..." // Some CSS linter
}
...
```

Run the command with
```text
$ npm run lint
```

You can also add a `prepush` hook through [husky](https://www.npmjs.com/package/husky)
```text
"scripts": {
    "prepush": "npm run lint"
}
```

This will lint your code before pushing to BitBucket.

## Override config

You can add / remove rules and environment configs freely in `.eslintrc.js`.
```javascript
module.exports = {
    extends: '@lamiaoy/eslint-config',
    env: {
        browser: true // Allow browser globals, such as 'window' and 'document'
    },
    rules: {
        'no-console': 'off' // Allow console.log -statements in your code
    }
};
```

You can see the full list of available rules [here](https://eslint.org/docs/rules/).
npm package: @laminar/e2e
Description: To run the simulation you need to local Laminar node
Latest version: 0.1.5

# E2E & Simulations

To run the simulation you need to local Laminar node

### Running Laminar local node

Using `docker`:
```shell=
docker run --rm -p 9944:9944  laminar/laminar-node:latest \
--dev --ws-external --rpc-methods=unsafe \
-levm=trace --tmp
```

To build the project without `docker` use the guidelines here:
[**laminar-protocol/laminar-chain**](https://github.com/laminar-protocol/laminar-chain)
Run the node with:
```
cargo run -- --dev --tmp
```

## Simulate synthetic pool liquidation

Install dependencies:
```
yarn
```

Run simulation:
```shell=
yarn dev:simulate-liquidate-synthetic-pool
```

## Simulate margin position

To use simulation you need to clone the repository and run the simulation script:

Install dependencies:
```
yarn
```

Run simulation:
```shell=
yarn dev:simulate-margin-position
```