Skip to content

Commit 1c78a01

Browse files
committed
Rename eslint-config-humanmade to @humanmade/eslint-config
1 parent c1083f6 commit 1c78a01

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</td>
77
<td align="center" width="30%">
88
<a href="https://packagist.org/packages/humanmade/coding-standards"><img src="https://img.shields.io/packagist/v/humanmade/coding-standards.svg" /></a>
9-
<a href="https://www.npmjs.com/package/eslint-config-humanmade"><img src="https://img.shields.io/npm/v/eslint-config-humanmade.svg" /></a>
9+
<a href="https://www.npmjs.com/package/humanmade/eslint-config"><img src="https://img.shields.io/npm/v/humanmade/eslint-config.svg" /></a>
1010
<img src="https://travis-ci.org/humanmade/coding-standards.svg?branch=master" alt="Build Status" />
1111
</td>
1212
</tr>
@@ -31,7 +31,7 @@ We welcome contributions to these standards and want to make the experience as s
3131
Each ruleset is available individually via Composer or NPM. To install the needed ruleset, use one of the following commands:
3232

3333
- PHPCS: `composer require --dev humanmade/coding-standards`
34-
- ESLint: `npx install-peerdeps --dev eslint-config-humanmade@latest`
34+
- ESLint: `npx install-peerdeps --dev @humanmade/eslint-config@latest`
3535
- stylelint: `npm install --save-dev stylelint @humanmade/stylelint-config`
3636

3737
## Using PHPCS
@@ -126,9 +126,9 @@ The phpcs standard is based upon the `WordPress-VIP` standard from [WordPress Co
126126

127127
## Using ESLint
128128

129-
The ESLint package contains an [ESLint](https://eslint.org/) configuration which you can use to validate your JavaScript code style. While it is possible to run ESLint via phpcs, we recommend you install and use eslint via npm directly or use [linter-bot](https://github.com/humanmade/linter-bot). See [the `eslint-config-humanmade` package README](packages/eslint-config-humanmade/readme.md) for more information on configuring ESLint to use the Human Made coding standards.
129+
The ESLint package contains an [ESLint](https://eslint.org/) configuration which you can use to validate your JavaScript code style. While it is possible to run ESLint via phpcs, we recommend you install and use eslint via npm directly or use [linter-bot](https://github.com/humanmade/linter-bot). See [the `@humanmade/eslint-config` package README](packages/eslint-config-humanmade/readme.md) for more information on configuring ESLint to use the Human Made coding standards.
130130

131-
Once you have installed the [`eslint-config-humanmade` npm package](https://www.npmjs.com/package/eslint-config-humanmade), you may simply specify that your own project-level ESLint file extends the `humanmade` configuration. If you install this globally (`npm install -g eslint-config-humanmade`) you can also reference the configuration directly from the command line via `eslint -c humanmade .`
131+
Once you have installed the [`@humanmade/eslint-config` npm package](https://www.npmjs.com/package/humanmade/eslint-config), you may simply specify that your own project-level ESLint file extends the `humanmade` configuration. If you install this globally (`npm install -g @humanmade/eslint-config`) you can also reference the configuration directly from the command line via `eslint -c humanmade .`
132132

133133
Alternatively, you can create your own configuration and extend these rules:
134134

packages/eslint-config-humanmade/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "eslint-config-humanmade",
2+
"name": "@humanmade/eslint-config",
33
"version": "1.0.0",
44
"description": "Human Made Coding Standards for JavaScript.",
55
"author": "Human Made",
@@ -13,7 +13,7 @@
1313
"linter",
1414
"humanmade"
1515
],
16-
"homepage": "https://github.com/humanmade/coding-standards/tree/master/packages/eslint-config-humanmade#eslint-config-humanmade",
16+
"homepage": "https://github.com/humanmade/coding-standards/tree/master/packages/eslint-config-humanmade#readme",
1717
"repository": {
1818
"type": "git",
1919
"url": "git+https://github.com/humanmade/coding-standards.git",

packages/eslint-config-humanmade/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# eslint-config-humanmade
1+
# @humanmade/eslint-config
22

33
Human Made coding standards for JavaScript.
44

@@ -9,7 +9,7 @@ This package is an ESLint shareable configuration, and requires `babel-eslint`,
99
To install this config and the peerDependencies when using **npm 5+**:
1010

1111
```
12-
npx install-peerdeps --dev eslint-config-humanmade@latest
12+
npx install-peerdeps --dev @humanmade/eslint-config@latest
1313
```
1414

1515
(Thanks to [Airbnb's package](https://www.npmjs.com/package/eslint-config-airbnb) for the command.)
@@ -49,7 +49,7 @@ When installing globally, you need to ensure the peer dependencies are also inst
4949
Run the same command as above, but instead with `--global`:
5050

5151
```
52-
npx install-peerdeps --global eslint-config-humanmade@latest
52+
npx install-peerdeps --global @humanmade/eslint-config@latest
5353
```
5454
5555
This allows you to use `eslint -c humanmade MyFile.js` anywhere on your filesystem.

0 commit comments

Comments
 (0)