1 | # JavaScript Standard Modulus Style
|
2 |
|
3 | [![version](https://img.shields.io/npm/v/@modulus/standard.svg?style=flat-square)][version]
|
4 | [![build](https://img.shields.io/travis/onmodulus/standard.svg?style=flat-square)][build]
|
5 | [![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
|
6 |
|
7 | A [standard-engine][engine] implementation wrapping the
|
8 | [eslint-config-modulus][eslint] shared config.
|
9 |
|
10 | ## Install
|
11 |
|
12 | ```bash
|
13 | npm install @modulus/standard --save-dev
|
14 | ```
|
15 |
|
16 | ## Usage
|
17 |
|
18 | ```bash
|
19 | $ mod-standard
|
20 | Error: Use JavaScript Standard Modulus Style
|
21 | lib/torrent.js:950:11: Expected '===' and instead saw '=='.
|
22 | ```
|
23 |
|
24 | ## Lint before testing
|
25 |
|
26 | ```json
|
27 | // package.json
|
28 | {
|
29 | "scripts": {
|
30 | "pretest": "mod-standard",
|
31 | "test": "lab -c"
|
32 | }
|
33 | }
|
34 | ```
|
35 |
|
36 | [engine]: https://github.com/Flet/standard-engine
|
37 | [eslint]: https://github.com/onmodulus/eslint-config
|
38 |
|
39 | [version]: https://www.npmjs.com/package/@modulus/standard
|
40 | [build]: https://travis-ci.org/onmodulus/standard
|
41 | [license]: https://raw.githubusercontent.com/onmodulus/standard/master/LICENSE
|