1ff28f3138
* stable-2.15: Disable "prefer-promise-reject-errors" in eslint Set version to 2.15.10 Daemon: Show status of slave and headless mode in 'ready' log Daemon: Don't install online reindexer in slave mode RevisionApi: Add method to list votes per revision ChangeJson#getApprovalInfo: Add @Nullable annotations cmd-review: Add another example to clarify review using change number and PS Update .mailmap Update cmd-review documentation Daemon: use regular binding for auditModule CommitValidators: trim "ERROR" shouting from "forge committer" check ReceiveCommits: uniformize commit validation error messages. Inline "Change-Id" string into error messages Always end the "Change-Id missing" error message with \n. Print only one hint about Change-Ids at a time Clean up Change-Id hint text CommitValidators: Replace indexOf calls with String#contains CommitValidators: Prefer using Splitter to String.split Changes I0bfe06bd and I58f8a0e5 are intentionally omitted because they do not apply to the structure of the stable-2.16 branch. Change-Id: I711837f062aeefeafa3631601b0150448e879575
81 lines
2.2 KiB
JSON
81 lines
2.2 KiB
JSON
{
|
|
"extends": ["eslint:recommended", "google"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 8
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"globals": {
|
|
"__dirname": false,
|
|
"app": false,
|
|
"page": false,
|
|
"Polymer": false,
|
|
"process": false,
|
|
"require": false,
|
|
"Gerrit": false,
|
|
"Promise": false,
|
|
"assert": false,
|
|
"test": false,
|
|
"flushAsynchronousOperations": false
|
|
},
|
|
"rules": {
|
|
"arrow-parens": ["error", "as-needed"],
|
|
"block-spacing": ["error", "always"],
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
|
"camelcase": "off",
|
|
"comma-dangle": ["error", "always-multiline"],
|
|
"eol-last": "off",
|
|
"indent": "off",
|
|
"indent-legacy": ["error", 2, {
|
|
"MemberExpression": 2,
|
|
"FunctionDeclaration": {"body": 1, "parameters": 2},
|
|
"FunctionExpression": {"body": 1, "parameters": 2},
|
|
"CallExpression": {"arguments": 2},
|
|
"ArrayExpression": 1,
|
|
"ObjectExpression": 1,
|
|
"SwitchCase": 1
|
|
}],
|
|
"keyword-spacing": ["error", { "after": true, "before": true }],
|
|
"max-len": [
|
|
"error",
|
|
80,
|
|
2,
|
|
{"ignoreComments": true}
|
|
],
|
|
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
|
|
"no-console": "off",
|
|
"no-restricted-syntax": [
|
|
"error",
|
|
{
|
|
"selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='test'][property.name='only']",
|
|
"message": "Remove test.only."
|
|
},
|
|
{
|
|
"selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='suite'][property.name='only']",
|
|
"message": "Remove suite.only."
|
|
}
|
|
],
|
|
"no-undef": "off",
|
|
"no-useless-escape": "off",
|
|
"no-var": "error",
|
|
"object-shorthand": ["error", "always"],
|
|
"prefer-arrow-callback": "error",
|
|
"prefer-const": "error",
|
|
"prefer-promise-reject-errors": "off",
|
|
"prefer-spread": "error",
|
|
"quote-props": ["error", "consistent-as-needed"],
|
|
"require-jsdoc": "off",
|
|
"semi": [2, "always"],
|
|
"template-curly-spacing": "error",
|
|
"valid-jsdoc": "off"
|
|
},
|
|
"plugins": [
|
|
"html"
|
|
],
|
|
"settings": {
|
|
"html/report-bad-indent": "error"
|
|
}
|
|
}
|