Skip to content

Commit

Permalink
Build: Set "root: true" in eslintrc
Browse files Browse the repository at this point in the history
Otherwise, the next version of qunitjs/jquery-release (which uses
ESLint instead of JSHint for linting its own code), is unable to
get "grunt" to pass on qunitjs/qunit because it's clone will be
in a subdirectory of itself, which then fails as follows:

> ~/Dev/qunit-release/__release/repo/test/reporter-html/window-onerror-preexisting-handler.html
>  9:27  error  'onerrorCallingContext' is assigned a value but never used  no-unused-vars

This is because ESLint is walking up from __release/repo and finding
the unrelated .eslintrc file in *that* repo.
  • Loading branch information
Krinkle authored and trentmwillis committed Jan 7, 2019
1 parent d90402f commit cbe24a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"env": {
"es6": true
},
Expand Down

0 comments on commit cbe24a4

Please sign in to comment.