# @jesstelford/scripts

> ``` yarn add @jesstelford/scripts ```

Latest version **1.0.5** (published 2018-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jesstelford/scripts
pnpm add @jesstelford/scripts
yarn add @jesstelford/scripts
bun add @jesstelford/scripts
```

Provides the command `jesstelford-scripts`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-04-18 |
| First published | 2018-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 19 |
| Unpacked size | 52 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jess Telford |
| Maintainers | jesstelford |

## Links

- npm: https://www.npmjs.com/package/@jesstelford/scripts
- npm.io page: https://npm.io/package/@jesstelford/scripts

## Dependencies (19)

- [sade](https://npm.io/package/sade.md) ^1.4.0
- [execa](https://npm.io/package/execa.md) ^0.10.0
- [husky](https://npm.io/package/husky.md) 0.15.0-rc.13
- [eslint](https://npm.io/package/eslint.md) ^4.9.0
- [pkg-dir](https://npm.io/package/pkg-dir.md) ^2.0.0
- [prettier](https://npm.io/package/prettier.md) 1.11.1
- [lint-staged](https://npm.io/package/lint-staged.md) ^7.0.0
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^3.0.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^8.2.2
- [npm-run-path](https://npm.io/package/npm-run-path.md) ^2.0.2
- [p-map-series](https://npm.io/package/p-map-series.md) ^1.0.0
- [is-valid-glob](https://npm.io/package/is-valid-glob.md) ^1.0.0
- [changelog-verify](https://npm.io/package/changelog-verify.md) ^1.1.0
- [version-changelog](https://npm.io/package/version-changelog.md) ^3.1.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.4.0
- [prettier-eslint-cli](https://npm.io/package/prettier-eslint-cli.md) ^4.7.1
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^16.1.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.7.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.0.2

## Recent versions

- 1.0.5 (latest) — 2018-04-18
- 1.0.4 — 2018-04-18
- 1.0.3 — 2018-04-18
- 1.0.2 — 2018-04-18
- 1.0.1 — 2018-04-16
- 1.0.0 — 2018-04-16

## README

## Installation

```
yarn add @jesstelford/scripts
```

Should also add `husky` and `lint-staged` if you want pre-commit awesomeness:

```
yarn add husky@next lint-staged
```

Add the following to `package.json`:

```json
{
  "config": {
    "source": "<<GLOB>>"
  },
  "lint-staged": {
    "<<GLOB>>": [
      "jesstelford-scripts lint list"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "scripts": {
    "version": "jesstelford-scripts version",
    "lint": "jesstelford-scripts lint",
    "lint:fix": "jesstelford-scripts lint fix"
  }
}
```

For editor/tooling to support linting, you'll want to run:

```bash
ln -s ./node_modules/@jesstelford/scripts/.eslintrc .eslintrc
```

## Usage

```
$ jesstelford-scripts --help

  Usage
    $ jesstelford-scripts <command> [options]
  Available Commands
    lint         Display any lint errors or warnings.
    lint fix     Fix lint errors and format source code.
    lint list    List file(s) that have linting or formatting errors.
    version      Verify, update and commit CHANGELOG.md
  For more info, run any command with the `--help` flag
    $ jesstelford-scripts lint --help
    $ jesstelford-scripts lint fix --help
  Options
    -v, --version    Displays current version
    -h, --help       Displays this message
```

### `lint`

```
$ jesstelford-scripts lint --help

  Description
    Display any lint errors or warnings.
    If no file specified, will lint all source files as defined in package.json config.jesstelford-scripts.source.
    file can be a single file, or a glob pattern.
  Usage
    $ jesstelford-scripts lint [file] [options]
  Options
    -h, --help    Displays this message
  Examples
    $ jesstelford-scripts lint                   # lint files defined in config.source
    $ jesstelford-scripts lint src/index.js      # lint a single file
    $ jesstelford-scripts lint {src,lib}/**/*.js # lint all .js files in src/ and lib/
```

### `lint fix`

```
$ jesstelford-scripts lint fix --help

  Description
    Fix lint errors and format source code.
    If no file specified, will fix and format all source files as defined in package.json config.source.
    file can be a single file, or a glob pattern.
  Usage
    $ jesstelford-scripts lint fix [file] [options]
  Options
    -h, --help    Displays this message
  Examples
    $ jesstelford-scripts lint fix                   # fix and format files defined in config.source
    $ jesstelford-scripts lint fix src/index.js      # fix and format a single file
    $ jesstelford-scripts lint fix {src,lib}/**/*.js # fix and format all .js files in src/ and lib/
```

### `lint list`

```
$ jesstelford-scripts lint list --help

  Description
    List file(s) that have linting or formatting errors.
    If no file specified, will execute on all source files as defined in package.json config.source.
    Particularly useful when combined with `lint-staged` and `husky`
    file can be a single file, or a glob pattern.
  Usage
    $ jesstelford-scripts lint list [file] [options]
  Options
    -h, --help    Displays this message
  Examples
    $ jesstelford-scripts lint list                   # execute on files defined in config.source
    $ jesstelford-scripts lint list src/index.js      # execute on a single file
    $ jesstelford-scripts lint list {src,lib}/**/*.js # execute on all .js files in src/ and lib/
```

### `version`

```
$ jesstelford-scripts version --help

  Description
    Verify, update and commit CHANGELOG.md
    Runs: `version-changelog CHANGELOG.md && changelog-verify CHANGELOG.md && git add CHANGELOG.md`
  Usage
    $ jesstelford-scripts version [options]
  Options
    -h, --help    Displays this message
```

---
_Source: https://npm.io/package/@jesstelford/scripts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
