2017-06-24 21:01:04 +03:00
|
|
|
"use strict";
|
|
|
|
|
2018-06-06 14:58:35 +03:00
|
|
|
// inherits from ../../tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
|
|
|
|
|
2017-06-24 21:01:04 +03:00
|
|
|
module.exports = {
|
|
|
|
"rules": {
|
2017-08-19 16:18:51 +03:00
|
|
|
"camelcase": "error",
|
2017-06-24 21:01:04 +03:00
|
|
|
"comma-dangle": ["error", "always-multiline"],
|
2017-10-09 12:54:16 +03:00
|
|
|
"indent-legacy": ["error", 2, {
|
2017-07-29 12:02:32 +03:00
|
|
|
"CallExpression": {"arguments": 2},
|
2017-06-24 21:01:04 +03:00
|
|
|
"FunctionExpression": {"body": 1, "parameters": 2},
|
|
|
|
"MemberExpression": 2,
|
2017-07-29 12:02:32 +03:00
|
|
|
"SwitchCase": 1,
|
2017-06-24 21:01:04 +03:00
|
|
|
}],
|
|
|
|
"max-len": ["error", 78, {
|
|
|
|
"ignoreStrings": true,
|
2017-12-05 10:06:17 +03:00
|
|
|
"ignoreTemplateLiterals": true,
|
2017-06-24 21:01:04 +03:00
|
|
|
"ignoreUrls": true,
|
|
|
|
}],
|
2017-08-18 20:55:56 +03:00
|
|
|
"no-fallthrough": "error",
|
2017-07-29 12:02:32 +03:00
|
|
|
"no-undef-init": "error",
|
2017-08-30 19:36:56 +03:00
|
|
|
"no-var": "error",
|
2017-06-24 21:01:04 +03:00
|
|
|
"object-curly-spacing": ["error", "never"],
|
|
|
|
}
|
|
|
|
};
|