eslint: Report unused disables

This commit is contained in:
Florian Bruhin 2017-09-29 22:29:18 +02:00
parent dca962ca03
commit 1a381bf0a5
3 changed files with 2 additions and 6 deletions

View File

@ -18,8 +18,6 @@
* along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
*/
/* eslint-disable max-len */
/**
* Snippet to position caret at top of the page when caret mode is enabled.
* Some code was borrowed from:
@ -28,8 +26,6 @@
* https://github.com/1995eaton/chromium-vim/blob/master/content_scripts/visual.js
*/
/* eslint-enable max-len */
"use strict";
(function() {

View File

@ -5,7 +5,7 @@ if [[ $DOCKER ]]; then
elif [[ $TESTENV == eslint ]]; then
# Can't run this via tox as we can't easily install tox in the javascript travis env
cd qutebrowser/javascript || exit 1
eslint --color .
eslint --color --report-unused-disable-directives .
else
args=()
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')

View File

@ -274,4 +274,4 @@ commands =
deps =
whitelist_externals = eslint
changedir = {toxinidir}/qutebrowser/javascript
commands = eslint --color .
commands = eslint --color --report-unused-disable-directives .