Skip to content

Commit c6ea442

Browse files
babu-chclaude
andcommitted
Rename eslint-plugin-aaa to eslint-plugin-aaa-pattern
npm rejects "eslint-plugin-aaa" as too similar to the existing "eslint-plugin-ava" (typo-squatting protection), so rename the package and its directory. Rule reference stays "aaa/pattern" since the ESLint plugin namespace is the import alias, not the npm name. Updated all docs (8 languages), scripts, and metadata. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a0927c1 commit c6ea442

26 files changed

Lines changed: 68 additions & 68 deletions

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ That's it. No local Node, Ruby, PHP, or Composer needed.
1212

1313
```bash
1414
make test # all three languages
15-
make test-node # eslint-plugin-aaa
15+
make test-node # eslint-plugin-aaa-pattern
1616
make test-ruby # rubocop-aaa
1717
make test-php # phpcs-aaa
1818
```
@@ -37,7 +37,7 @@ If you have the relevant toolchain installed you can also run tests directly:
3737

3838
```bash
3939
# JS
40-
npm test --workspace=eslint-plugin-aaa
40+
npm test --workspace=eslint-plugin-aaa-pattern
4141

4242
# Ruby
4343
cd packages/rubocop-aaa && bundle install && bundle exec rspec

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ it('adds two numbers', () => {
2222

2323
| Language | Linter | Package | Status |
2424
|---|---|---|---|
25-
| JS / TS | ESLint | [`eslint-plugin-aaa`](./packages/eslint-plugin-aaa) | WIP |
25+
| JS / TS | ESLint | [`eslint-plugin-aaa-pattern`](./packages/eslint-plugin-aaa-pattern) | WIP |
2626
| Ruby | RuboCop | [`rubocop-aaa`](./packages/rubocop-aaa) | WIP |
2727
| PHP | PHP_CodeSniffer | [`phpcs-aaa`](./packages/phpcs-aaa) | WIP |
2828

RELEASE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This monorepo ships three packages to three different registries:
44

55
| Package | Registry | Source path |
66
|---|---|---|
7-
| `eslint-plugin-aaa` | [npm](https://www.npmjs.com/) | `packages/eslint-plugin-aaa` |
7+
| `eslint-plugin-aaa-pattern` | [npm](https://www.npmjs.com/) | `packages/eslint-plugin-aaa-pattern` |
88
| `rubocop-aaa` | [RubyGems](https://rubygems.org/) | `packages/rubocop-aaa` |
99
| `babu-ch/phpcs-aaa` | [Packagist](https://packagist.org/) | `packages/phpcs-aaa` |
1010

@@ -17,15 +17,15 @@ Releases are **manual on purpose** — release frequency is low and we want a hu
1717
| Bump version | edit `package.json` | edit `.gemspec` | (none — Packagist reads git tags) |
1818
| Build artifact | npm packs `src/` | `gem build` produces `.gem` | `git subtree split` |
1919
| Push | `npm publish` | `gem push` | push to split mirror + tag |
20-
| User installs via | `npm install eslint-plugin-aaa@<v>` | `gem install rubocop-aaa -v <v>` | `composer require babu-ch/phpcs-aaa:<v>` |
20+
| User installs via | `npm install eslint-plugin-aaa-pattern@<v>` | `gem install rubocop-aaa -v <v>` | `composer require babu-ch/phpcs-aaa:<v>` |
2121

22-
Each release script also creates a per-package tag in the monorepo (`eslint-plugin-aaa-v<v>`, etc.) so `git log --tags` shows the release history.
22+
Each release script also creates a per-package tag in the monorepo (`eslint-plugin-aaa-pattern-v<v>`, etc.) so `git log --tags` shows the release history.
2323

2424
## Pre-release checklist (every package)
2525

2626
1. `make test` — all three suites green.
2727
2. Bump the version in the relevant manifest:
28-
- npm: `packages/eslint-plugin-aaa/package.json` (`version`)
28+
- npm: `packages/eslint-plugin-aaa-pattern/package.json` (`version`)
2929
- RubyGems: `packages/rubocop-aaa/rubocop-aaa.gemspec` (`spec.version`)
3030
- Packagist: `packages/phpcs-aaa/composer.json` (`version`)
3131
3. Commit and push the bump (`chore: bump <pkg> to <v>`).
@@ -36,7 +36,7 @@ Each release script also creates a per-package tag in the monorepo (`eslint-plug
3636
All run from the monorepo root. Each script picks up the version from the package's manifest.
3737

3838
```bash
39-
make release-eslint # eslint-plugin-aaa -> npm
39+
make release-eslint # eslint-plugin-aaa-pattern -> npm
4040
make release-rubocop # rubocop-aaa -> RubyGems
4141
make release-phpcs # phpcs-aaa -> Packagist (via split mirror)
4242
make release-all # all three sequentially
@@ -53,7 +53,7 @@ All scripts:
5353
- Push the tag back to `origin` after a successful publish.
5454

5555
`release-eslint.sh`:
56-
- Reads the version from `packages/eslint-plugin-aaa/package.json`.
56+
- Reads the version from `packages/eslint-plugin-aaa-pattern/package.json`.
5757
- Lets `npm publish`'s `prepublishOnly` hook run the test suite.
5858
- Adds `--access public` automatically on the first publish (when the package does not yet exist on npm).
5959

docs/de/guide/eslint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ESLint (JS / TS)
22

3-
`eslint-plugin-aaa` erzwingt das Arrange-Act-Assert-Muster in JavaScript- / TypeScript-Testdateien.
3+
`eslint-plugin-aaa-pattern` erzwingt das Arrange-Act-Assert-Muster in JavaScript- / TypeScript-Testdateien.
44

55
## Installation
66

77
```bash
8-
npm install --save-dev eslint-plugin-aaa
8+
npm install --save-dev eslint-plugin-aaa-pattern
99
```
1010

1111
## Flat config (ESLint v9+)
1212

1313
```js
1414
// eslint.config.js
15-
import aaa from 'eslint-plugin-aaa'
15+
import aaa from 'eslint-plugin-aaa-pattern'
1616

1717
export default [
1818
{
@@ -28,7 +28,7 @@ export default [
2828
Oder die mitgelieferte Empfehlung nutzen:
2929

3030
```js
31-
import aaa from 'eslint-plugin-aaa'
31+
import aaa from 'eslint-plugin-aaa-pattern'
3232

3333
export default [aaa.configs.recommended]
3434
```

docs/de/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Tests, die dem AAA-Muster folgen, sind leichter zu lesen und zu ändern. Reviewe
2626

2727
| Sprache | Linter | Paket |
2828
|---|---|---|
29-
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa`](./eslint) |
29+
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa-pattern`](./eslint) |
3030
| Ruby | [RuboCop](https://rubocop.org/) | [`rubocop-aaa`](./rubocop) |
3131
| PHP | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) | [`phpcs-aaa`](./phpcs) |
3232

docs/es/guide/eslint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ESLint (JS / TS)
22

3-
`eslint-plugin-aaa` impone el patrón Arrange-Act-Assert en archivos de test de JavaScript / TypeScript.
3+
`eslint-plugin-aaa-pattern` impone el patrón Arrange-Act-Assert en archivos de test de JavaScript / TypeScript.
44

55
## Instalación
66

77
```bash
8-
npm install --save-dev eslint-plugin-aaa
8+
npm install --save-dev eslint-plugin-aaa-pattern
99
```
1010

1111
## Flat config (ESLint v9+)
1212

1313
```js
1414
// eslint.config.js
15-
import aaa from 'eslint-plugin-aaa'
15+
import aaa from 'eslint-plugin-aaa-pattern'
1616

1717
export default [
1818
{
@@ -28,7 +28,7 @@ export default [
2828
O usa la config recomendada incluida:
2929

3030
```js
31-
import aaa from 'eslint-plugin-aaa'
31+
import aaa from 'eslint-plugin-aaa-pattern'
3232

3333
export default [aaa.configs.recommended]
3434
```

docs/es/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Los tests que siguen el patrón AAA son más fáciles de leer y de modificar. Lo
2626

2727
| Lenguaje | Linter | Paquete |
2828
|---|---|---|
29-
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa`](./eslint) |
29+
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa-pattern`](./eslint) |
3030
| Ruby | [RuboCop](https://rubocop.org/) | [`rubocop-aaa`](./rubocop) |
3131
| PHP | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) | [`phpcs-aaa`](./phpcs) |
3232

docs/fr/guide/eslint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ESLint (JS / TS)
22

3-
`eslint-plugin-aaa` impose le motif Arrange-Act-Assert dans les fichiers de test JavaScript / TypeScript.
3+
`eslint-plugin-aaa-pattern` impose le motif Arrange-Act-Assert dans les fichiers de test JavaScript / TypeScript.
44

55
## Installation
66

77
```bash
8-
npm install --save-dev eslint-plugin-aaa
8+
npm install --save-dev eslint-plugin-aaa-pattern
99
```
1010

1111
## Flat config (ESLint v9+)
1212

1313
```js
1414
// eslint.config.js
15-
import aaa from 'eslint-plugin-aaa'
15+
import aaa from 'eslint-plugin-aaa-pattern'
1616

1717
export default [
1818
{
@@ -28,7 +28,7 @@ export default [
2828
Ou utilisez la config recommandée fournie :
2929

3030
```js
31-
import aaa from 'eslint-plugin-aaa'
31+
import aaa from 'eslint-plugin-aaa-pattern'
3232

3333
export default [aaa.configs.recommended]
3434
```

docs/fr/guide/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Les tests qui suivent le motif AAA sont plus faciles à lire et à modifier. Les
2626

2727
| Langage | Linter | Paquet |
2828
|---|---|---|
29-
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa`](./eslint) |
29+
| JavaScript / TypeScript | [ESLint](https://eslint.org/) | [`eslint-plugin-aaa-pattern`](./eslint) |
3030
| Ruby | [RuboCop](https://rubocop.org/) | [`rubocop-aaa`](./rubocop) |
3131
| PHP | [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) | [`phpcs-aaa`](./phpcs) |
3232

docs/guide/eslint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ESLint (JS / TS)
22

3-
`eslint-plugin-aaa` enforces the Arrange-Act-Assert pattern in JavaScript and TypeScript test files.
3+
`eslint-plugin-aaa-pattern` enforces the Arrange-Act-Assert pattern in JavaScript and TypeScript test files.
44

55
## Install
66

77
```bash
8-
npm install --save-dev eslint-plugin-aaa
8+
npm install --save-dev eslint-plugin-aaa-pattern
99
```
1010

1111
## Flat config (ESLint v9+)
1212

1313
```js
1414
// eslint.config.js
15-
import aaa from 'eslint-plugin-aaa'
15+
import aaa from 'eslint-plugin-aaa-pattern'
1616

1717
export default [
1818
{
@@ -28,7 +28,7 @@ export default [
2828
Or use the bundled recommended config:
2929

3030
```js
31-
import aaa from 'eslint-plugin-aaa'
31+
import aaa from 'eslint-plugin-aaa-pattern'
3232

3333
export default [aaa.configs.recommended]
3434
```

0 commit comments

Comments
 (0)