gecko/testing/eslint-plugin-mozilla/docs
Dave Townsend 4c45c258f1 Bug 1245916: Unify eslint global discovery rules. r=pbrosset
While working on turning on no-undef I discovered that the various rules we
have for defining globals are a little inconsistent in whether the files they
load recurse through import-globals-from directives and none of them imported
eslint globals directives.

I think we're better off putting all this global parsing code in a single place
rather than spread across multiple rules. Have one rule to turn it on for
parsed files and one function to load globals from other files and make them
share most of the code so we won't get inconsistent. If we find us needing to
turn on/off individual features we can figure out a way to do that in the
future.

This patch does that, the globals.js file does all global parsing with a shared
object that receives events from the AST, either through from an ESlint rule
or from a simple AST walker using estraverse.

MozReview-Commit-ID: 9KQZwsNNOUl
2016-02-05 11:37:50 -08:00
..
balanced-listeners.rst Bug 1218409 - Eslint rule that checks for balanced listeners. r=miker 2015-10-27 11:21:46 +01:00
import-browserjs-globals.rst Bug 1229224: Add an eslint plugin for importing all browser.js globals for browser-chrome tests. r=miker 2015-12-17 15:33:32 -08:00
import-globals.rst Bug 1245916: Unify eslint global discovery rules. r=pbrosset 2016-02-05 11:37:50 -08:00
import-headjs-globals.rst Bug 1242584 - import-globals-from should carry over to tests. r=tromey 2016-01-26 17:08:33 -06:00
index.rst Bug 1241544 - add documentation for this-top-level-scope eslint rule; r=mikeratcliffe 2016-01-29 08:32:54 -07:00
mark-test-function-used.rst
no-aArgs.rst Bug 1218425 - ESLint rule that warns against aArg notation in function params; r=miker 2015-10-28 08:32:02 +01:00
no-cpows-in-tests.rst Bug 1218412 - Create ESLint rule to check for CPOWS in browser mochitests r=pbrosset 2015-10-30 17:24:45 +00:00
reject-importGlobalProperties.rst Bug 1224289 - add eslint rule to reject Cu.importGlobalProperties; r=mikeratcliffe 2016-01-22 13:58:31 -07:00
var-only-at-top-level.rst Bug 1205814 - mozilla eslint plug: allow top level var only r=pbrosset 2015-10-26 14:39:47 +00:00