Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
[docs] no-unsed-variable undeprecation (Closes #171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Lopez committed May 6, 2017
1 parent 9c8b91d commit 1090a2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ These rules have to do with variable declarations.
|:no_entry_sign:|[no-undef](http://eslint.org/docs/rules/no-undef)|Not applicable|disallow use of undeclared variables unless mentioned in a `/*global */` block (recommended)|
|:x:|[no-undef-init](http://eslint.org/docs/rules/no-undef-init)|no-undef-init|disallow use of undefined when initializing variables|
|:x:|[no-undefined](http://eslint.org/docs/rules/no-undefined)|no-undefined|disallow use of `undefined` variable|
|:no_entry_sign:|[no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)|Not applicable|[**DEPRECATED**: [no-unused-variable](https://github.com/palantir/tslint/issues/1481)] disallow declaration of variables that are not used in the code (recommended).|
|:ballot_box_with_check:|[no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)|[no-unused-variable](https://palantir.github.io/tslint/rules/no-unused-variable/)|disallow unused variables (recommended).|
|:ballot_box_with_check:|[no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)|[no-use-before-declare](http://palantir.github.io/tslint/rules/no-use-before-declare)|disallow use of variables before they are defined|

### Node.js and CommonJS
Expand Down
9 changes: 5 additions & 4 deletions src/readme/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1368,13 +1368,14 @@ const rules: IRule[] = [
~~~`
},
{
available: false,
available: true,
eslintRule: 'no-unused-vars',
tslintRule: 'Not applicable',
tslintRule: 'no-unused-variable',
category: 'Variables',
description: '[**DEPRECATED**: [no-unused-variable](https://github.com/palantir/tslint/issues/1481)] disallow declaration of variables that are not used in the code (recommended).',
description: 'disallow unused variables (recommended).',
eslintUrl: 'http://eslint.org/docs/rules/no-unused-vars',
provider: 'Not applicable'
tslintUrl: 'https://palantir.github.io/tslint/rules/no-unused-variable/',
provider: 'native'
},
{
available: true,
Expand Down

0 comments on commit 1090a2a

Please sign in to comment.