eslint: Report unused disables
This commit is contained in:
parent
dca962ca03
commit
1a381bf0a5
@ -18,8 +18,6 @@
|
|||||||
* along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
* 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.
|
* Snippet to position caret at top of the page when caret mode is enabled.
|
||||||
* Some code was borrowed from:
|
* Some code was borrowed from:
|
||||||
@ -28,8 +26,6 @@
|
|||||||
* https://github.com/1995eaton/chromium-vim/blob/master/content_scripts/visual.js
|
* https://github.com/1995eaton/chromium-vim/blob/master/content_scripts/visual.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-enable max-len */
|
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -5,7 +5,7 @@ if [[ $DOCKER ]]; then
|
|||||||
elif [[ $TESTENV == eslint ]]; then
|
elif [[ $TESTENV == eslint ]]; then
|
||||||
# Can't run this via tox as we can't easily install tox in the javascript travis env
|
# Can't run this via tox as we can't easily install tox in the javascript travis env
|
||||||
cd qutebrowser/javascript || exit 1
|
cd qutebrowser/javascript || exit 1
|
||||||
eslint --color .
|
eslint --color --report-unused-disable-directives .
|
||||||
else
|
else
|
||||||
args=()
|
args=()
|
||||||
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
|
[[ $TRAVIS_OS_NAME == osx ]] && args=('--qute-bdd-webengine' '--no-xvfb')
|
||||||
|
2
tox.ini
2
tox.ini
@ -274,4 +274,4 @@ commands =
|
|||||||
deps =
|
deps =
|
||||||
whitelist_externals = eslint
|
whitelist_externals = eslint
|
||||||
changedir = {toxinidir}/qutebrowser/javascript
|
changedir = {toxinidir}/qutebrowser/javascript
|
||||||
commands = eslint --color .
|
commands = eslint --color --report-unused-disable-directives .
|
||||||
|
Loading…
Reference in New Issue
Block a user