gecko-dev/testing/marionette/.eslintrc.js
Andreas Tolfsen cfe89162b6 Bug 1391952 - Introduce camel case lint rule. r=automatedtester
The Firefox remote protocol in testing/marionette predominantly uses
camel casing in naming properties and variables.  To enforce consistency
with this practice, this patch adds an eslint rule to enforce camel case.

There are a few exceptions where we use snake case in response output.
We can disable the lint rule on an individual basis in this handful
of cases.

MozReview-Commit-ID: DL7msdriFil

--HG--
extra : rebase_source : 737791b59002027f7501e7c46bd31d7a368a9b66
2017-08-19 14:18:51 +01:00

24 lines
574 B
JavaScript

"use strict";
module.exports = {
"rules": {
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 2, {
"CallExpression": {"arguments": 2},
"FunctionExpression": {"body": 1, "parameters": 2},
"MemberExpression": 2,
"SwitchCase": 1,
}],
"max-len": ["error", 78, {
"ignoreStrings": true,
"ignoreUrls": true,
}],
"no-fallthrough": "error",
"no-new-object": "error",
"no-undef-init": "error",
"object-curly-spacing": ["error", "never"],
"semi": "error",
}
};