Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: deprecates id-blacklist (and documents deprecation)
- Loading branch information
1 parent
b55fd3b
commit 1d9a8bf
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# disallow specified identifiers (id-blacklist) | ||
|
||
This rule has been deprecated. Please see the [`id-denylist`]('./id-blacklist') rule. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @fileoverview Rule that warns when identifier names that are | ||
* specified in the configuration are used. | ||
* @author Keith Cirkel (http://keithcirkel.co.uk) | ||
*/ | ||
|
||
"use strict"; | ||
|
||
const idDenylist = require("./id-denylist"); | ||
|
||
// `id-blacklist` has been renamed to `id-denylist` | ||
module.exports = { | ||
|
||
// eslint-disable-next-line internal-rules/consistent-docs-url, internal-rules/no-invalid-meta | ||
meta: Object.assign({}, { | ||
deprecated: true, | ||
docs: Object.assign({}, { | ||
url: "https://eslint.org/docs/rules/id-blacklist" | ||
}, idDenylist.meta.docs) | ||
}, idDenylist.meta), | ||
create: idDenylist.create | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters