open-index/open-npm huggingface dataset:
npm package: @internet/eslint-config
Description: Personal ESLint config based on Standard
Author: pqml
Latest version: 0.2.0

# Eslint Config

<br>

## Requirements
- Node 10

<br>

## Module Installation

```sh
# using npm
$ npm install --save-dev @internet/eslint-config

# or using yarn
$ yarn add --dev @internet/eslint-config
```

<br>

## Usage

Add this to your eslint config:

```json
{
  "extends": ["@internet"]
}
```

<br>

## License
[MIT.](LICENSE)

<br>

<i>`eslint-config` is a package of the [@internet](https://www.npmjs.com/org/internet) npm scope. </i>

_[@internet](https://www.npmjs.com/org/internet) is a collection of opinionated and interoperables front-end npm ES6 modules, with minimal external dependencies._
npm package: @internet/hmr
Description: Webpack loader that add a hmr method to your module
Author: pqml
Latest version: 0.0.3

# hmr-loader
Webpack loader that add a hmr method to your module

<br><br><br>

## Features
- Wrap your module inside an HMR object
- Watch/Unwatch changes with the `watch` and `unwatch` methods
- Access to your module via the `module` property

<br><br>

## Installation

```sh
$ npm install @internet/hmr -S # with npm
$ yarn add @internet/hmr --dev # with yarn
```

<br><br>

## Usage

:warning: Specify `@internet/hmr` to each import statement your want to add hot reloading.

:warning: `hmr-loader` doesn't work when specified in a webpack config file.

<br>

```js
import Module from '@internet/hmr!./module-object'
import string from '@internet/hmr!./module-string'

// Return true - you can use it to check if the module is wrapped inside the hmr module
Module.__hmr

// Return module ID
Module.id

// Real module default value
Module.module

// onReload will be called on each reload
Module.watch(onReload)

// Stop calling onReload on each reload
Module.unwatch(onReload)

// Only the new module value is sent to the callback, without a new hmr wrapper
function onReload (newValue) {}
```

<br><br>

## Requirements
- Node >= 8
- Webpack >= 3

<br><br>

## License
[MIT.](LICENSE)

<br><br>

<i>`hmr-loader` is a package of the [@internet](https://www.npmjs.com/org/internet) npm scope. </i>

_[@internet](https://www.npmjs.com/org/internet) is a collection of opinionated and interoperables front-end npm ES6 modules, with minimal external dependencies._