1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-28 08:20:56 +01:00

Fix jshint tests

Summary:
The linter's behavior was changed in https://github.com/jshint/jshint/issues/3444: "warnings" are no longer counted for `maxerr`.

Updating the test to match...

Test Plan: `arc unit src/lint/linter/__tests__/ArcanistJSHintLinterTestCase.php` with a recent-ish (2.13.6) jshint.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25355
This commit is contained in:
Aviv Eyal 2023-08-12 08:43:26 -07:00
parent 726b148afc
commit 6832afc300

View file

@ -1,5 +1,6 @@
/* jshint maxerr: 1 */
console.log('foobar')
console.log(
{
~~~~~~~~~~
disabled:2:22:E043
warning:2:22:W033
disabled:3:1:E043
error:3:1:E019