Skip to content

Commit

Permalink
fix(eslint-plugin): [no-shadow] allow ignoreOnInitialization option
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Feb 27, 2022
1 parent 4aefecc commit ede0e15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-plugin/src/rules/no-shadow.ts
Expand Up @@ -18,6 +18,7 @@ type Options = [
allow?: string[];
builtinGlobals?: boolean;
hoist?: 'all' | 'functions' | 'never';
ignoreOnInitialization?: boolean;
ignoreTypeValueShadow?: boolean;
ignoreFunctionTypeParameterNameValueShadow?: boolean;
},
Expand Down Expand Up @@ -49,6 +50,9 @@ export default util.createRule<Options, MessageIds>({
type: 'string',
},
},
ignoreOnInitialization: {
type: 'boolean',
},
ignoreTypeValueShadow: {
type: 'boolean',
},
Expand All @@ -68,6 +72,7 @@ export default util.createRule<Options, MessageIds>({
allow: [],
builtinGlobals: false,
hoist: 'functions',
ignoreOnInitialization: false,
ignoreTypeValueShadow: true,
ignoreFunctionTypeParameterNameValueShadow: true,
},
Expand Down

0 comments on commit ede0e15

Please sign in to comment.