Skip to content

Commit

Permalink
Merge pull request #90 from abraxxa/master
Browse files Browse the repository at this point in the history
Improve README regarding global variable handling
  • Loading branch information
ricardofbarros committed Mar 9, 2016
2 parents 87ad107 + f3f1922 commit ff28676
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Example of messages while showEslintRules is:
Lint markdown fenced code blocks.

### Global Variable Support
To have the linter ignore global variables, add a section to your package.json:
To have the linter not warn about undeclared variables when using global variables, honorStyleSettings has to be checked/true and a "globals" section has to be added to package.json:
```
"semistandard": {
"globals": [
Expand All @@ -75,6 +75,7 @@ To have the linter ignore global variables, add a section to your package.json:
]
}
```
If honorStyleSettings is checked/true, the linter will not warn about undeclared variables that are listed in the globals array.
Also see https://github.com/feross/standard#i-use-a-library-that-pollutes-the-global-namespace-how-do-i-prevent-variable-is-not-defined-errors.

## License
MIT

0 comments on commit ff28676

Please sign in to comment.