Skip to content

Commit

Permalink
common: Enforce no-shadow (#305)
Browse files Browse the repository at this point in the history
Fixes #304
  • Loading branch information
edg2s committed Jun 24, 2020
1 parent 438d184 commit ec2e954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"no-tabs": [ "error", { "allowIndentationTabs": true } ],
"no-throw-literal": "error",
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/common/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
var APP;
// eslint-disable-next-line wrap-iife
( function ( global ) {
// eslint-disable-next-line no-shadow
var APP;
// eslint-disable-next-line one-var
var upHere = function ( yArg ) {
Expand Down Expand Up @@ -76,7 +77,7 @@ var APP;
var e = items.event;
try {
return APP.loop( items );
} catch ( e ) {
} catch ( err ) {
}
return e;
}
Expand Down

0 comments on commit ec2e954

Please sign in to comment.