gecko-dev/testing/marionette/.eslintrc.js
Andreas Tolfsen b1ba712637 Bug 1467100 - Remove duplicate eslint rules for testing/marionette r=whimboo
The rules no-new-object, no-unused-vars, and semi have been adopted by the
general central eslint configuration.  This file acts as a specialisation
for tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
and are thus duplicated.

MozReview-Commit-ID: 9vZHBiMvqXY

--HG--
extra : rebase_source : f5dbaef7107fc197582623fc3952b86e1a6c555b
2018-06-06 12:58:35 +01:00

26 lines
682 B
JavaScript

"use strict";
// inherits from ../../tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
module.exports = {
"rules": {
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"indent-legacy": ["error", 2, {
"CallExpression": {"arguments": 2},
"FunctionExpression": {"body": 1, "parameters": 2},
"MemberExpression": 2,
"SwitchCase": 1,
}],
"max-len": ["error", 78, {
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true,
}],
"no-fallthrough": "error",
"no-undef-init": "error",
"no-var": "error",
"object-curly-spacing": ["error", "never"],
}
};