Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
add migration info
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperfirecai2 committed Jan 16, 2025
1 parent 09dd439 commit a9d2ef4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

**as of version 1.1 of [eslint-plugin-deprecate-classnames](https://github.com/juanpinheiro/eslint-plugin-deprecate-classnames) , multiple rules are supported out of the box. this fork adds no further features and has not updated the dependencies, unlike the source. please install the source version instead.**

## How to migrate

1. Install `eslint-plugin-deprecate-classnames` version 1.1.0 or newer
2. Rename all instances of `deprecate-classnames-many` to `deprecate-classnames` in your eslint config
3. Update your rules like the example below

```diff
- "deprecate-classnames-many/classnames": [
+ "deprecate-classnames/classnames": [
"error",
- {
- "disAllow": [
{"nameRegExp": "^test-foo-", "use": "new-foo-"}
{"nameRegExp": "^test-bar-", "use": "new-bar-"}
- ]
- }
]
=>
"deprecate-classnames/classnames": [
"error",
{"nameRegExp": "^test-foo-", "use": "new-foo-"}
{"nameRegExp": "^test-bar-", "use": "new-bar-"}
]
```

## eslint-plugin-deprecate-classnames-many

[![NPM version](http://img.shields.io/npm/v/eslint-plugin-deprecate-classnames-many.svg)](https://www.npmjs.com/package/eslint-plugin-deprecate-classnames-many)
Expand Down

0 comments on commit a9d2ef4

Please sign in to comment.