Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt 7b0d039311 Bug 1509391 - [eslint] Ignore excluded files that mozlint wasn't able to handle automatically r=Standard8
Normally eslint handles its own file exclusions, but there are still some
globally excluded paths that |mach lint| passes in (e.g objdirs and things in
ThirdPartyPaths.txt).

This makes sure that if they show up in the 'config', we handle them.

Differential Revision: https://phabricator.services.mozilla.com/D12712

--HG--
extra : moz-landing-system : lando
2018-11-28 15:16:19 +00:00
Dorel Luca 37e525df6c Backed out changeset c8e417bfccfb (bug 1509391) for build bustage. CLOSED TREE 2018-11-27 00:00:46 +02:00
Andrew Halberstadt afd8a94f03 Bug 1509391 - [eslint] Ignore excluded files that mozlint wasn't able to handle automatically r=Standard8
Normally eslint handles its own file exclusions, but there are still some
globally excluded paths that |mach lint| passes in (e.g objdirs and things in
ThirdPartyPaths.txt).

This makes sure that if they show up in the 'config', we handle them.

Differential Revision: https://phabricator.services.mozilla.com/D12712

--HG--
extra : moz-landing-system : lando
2018-11-26 14:16:59 +00:00
Gabriele Svelto 7d361890f4 Bug 1499089 - Handle warnings without a line number correctly r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D8737

--HG--
extra : moz-landing-system : lando
2018-10-16 13:46:32 +00:00
Mark Banner a56f9d6b1a Bug 1496080 - Fix ./mach eslint --fix. r=ahal
Insert the argument in the correct place when passing to node.

Differential Revision: https://phabricator.services.mozilla.com/D7609

--HG--
extra : moz-landing-system : lando
2018-10-03 14:44:19 +00:00
Mark Banner 3043f2a053 Bug 1482435 - Separate out nodejs finding logic from configure and use it for ESLint. r=firefox-build-system-reviewers,gps
This extracts the current logic for finding nodejs into its own module in mozbuild. Configure and ESLint then use it.

For ESLint, this will change the first location it looks for nodejs to be the .mozbuild directory.

Differential Revision: https://phabricator.services.mozilla.com/D6430

--HG--
extra : moz-landing-system : lando
2018-09-25 18:15:51 +00:00
Andrew Halberstadt eb84bf741c Bug 1429457 - [mozlint] Create formal 'setup' mechanism for bootstrapping lint dependencies, r=gbrown
This allows linters to define a 'setup' method which will automatically be
called by |mach lint| before running the linter. Users can also explicitly run
these methods (without doing any actual linting) by running |mach lint --setup|.

MozReview-Commit-ID: 74aY1pfsaX1

--HG--
extra : rebase_source : e6a7d769ba14c996c7a77316928063fa46358c5a
2018-01-25 13:40:02 -05:00
Mark Banner 2cb6019eeb Bug 1371293 - Automatically clobber node_modules when upgrading from ESLint 3 to 4. r=ahal
This is intended to help with ensuring that developer's profiles cleanup and upgrade correctly, as we've seen issues in the past.

MozReview-Commit-ID: CqCRDN0y64I

--HG--
extra : rebase_source : a4668cd40bfaf1dc031e02713de78767305d4728
2017-11-07 14:30:56 +00:00
Tom Prince 030f21782c Bug 1383318 - get rid of a dead `global` in eslint configuration. r=ahal
MozReview-Commit-ID: 2SZyO8KSVD5

--HG--
extra : rebase_source : 79299e663005413bdc593ba7376bc48dde4293f9
2017-07-21 16:56:09 -06:00
Andrew Halberstadt e892c0600b Bug 1288432 - Use new mozlint configuration for eslint linter, r=standard8
MozReview-Commit-ID: HX0yA8U15Fw

--HG--
rename : tools/lint/eslint.lint.py => tools/lint/eslint/__init__.py
extra : rebase_source : f11e103038acd8b95b9586026c571a88587a79b2
2017-06-02 09:48:22 -04:00