Skip to content

Commit

Permalink
fix(rules): change 'no-shadowing' error level
Browse files Browse the repository at this point in the history
  • Loading branch information
alecxe committed Jun 22, 2016
1 parent 367a47a commit 5841eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ Rule | Default | Options
---- | ------- | -------
[missing-perform][] | 2 |
[no-browser-pause][] | 2 |
[no-shadowing][] | 2 |
[missing-wait-message][] | 1 |
[no-browser-sleep][] | 1 |
[no-by-xpath][] | 1 |
[no-describe-selectors][] | 1 |
[no-angular-classes][] | 1 |
[use-angular-locators][] | 1 |
[use-simple-repeaters][] | 1 |
[no-shadowing][] | 1 |
[by-css-shortcut][] | 0 |

For example, the `missing-perform` rule is enabled by default and will cause
Expand All @@ -62,14 +62,14 @@ See [configuring rules][] for more information.

[missing-perform]: docs/rules/missing-perform.md
[no-browser-pause]: docs/rules/no-browser-pause.md
[no-shadowing]: docs/rules/no-shadowing.md
[missing-wait-message]: docs/rules/missing-wait-message.md
[no-browser-sleep]: docs/rules/no-browser-sleep.md
[no-by-xpath]: docs/rules/no-by-xpath.md
[no-describe-selectors]: docs/rules/no-describe-selectors.md
[no-angular-classes]: docs/rules/no-angular-classes.md
[use-angular-locators]: docs/rules/use-angular-locators.md
[use-simple-repeaters]: docs/rules/use-simple-repeaters.md
[no-shadowing]: docs/rules/no-shadowing.md
[by-css-shortcut]: docs/rules/by-css-shortcut.md
[configuring rules]: http://eslint.org/docs/user-guide/configuring#configuring-rules

Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ module.exports = {
rules: {
'missing-perform': require('./lib/rules/missing-perform'),
'no-browser-pause': require('./lib/rules/no-browser-pause'),
'no-shadowing': require('./lib/rules/no-shadowing'),
'missing-wait-message': require('./lib/rules/missing-wait-message'),
'no-browser-sleep': require('./lib/rules/no-browser-sleep'),
'no-by-xpath': require('./lib/rules/no-by-xpath'),
'no-describe-selectors': require('./lib/rules/no-describe-selectors'),
'by-css-shortcut': require('./lib/rules/by-css-shortcut'),
'no-angular-classes': require('./lib/rules/no-angular-classes'),
'use-angular-locators': require('./lib/rules/use-angular-locators'),
'use-simple-repeaters': require('./lib/rules/use-simple-repeaters')
'use-simple-repeaters': require('./lib/rules/use-simple-repeaters'),
'no-shadowing': require('./lib/rules/no-shadowing')
},
configs: {
recommended: {
rules: {
'protractor/missing-perform': 2,
'protractor/no-browser-pause': 2,
'protractor/no-shadowing': 2,
'protractor/missing-wait-message': 1,
'protractor/no-browser-sleep': 1,
'protractor/no-by-xpath': 1,
'protractor/no-describe-selectors': 1,
'protractor/no-angular-classes': 1,
'protractor/use-angular-locators': 1,
'protractor/use-simple-repeaters': 1,
'protractor/no-shadowing': 1,
'protractor/by-css-shortcut': 0
}
}
Expand Down

0 comments on commit 5841eff

Please sign in to comment.