mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
cfe89162b6
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
24 lines
574 B
JavaScript
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",
|
|
}
|
|
};
|