зеркало из https://github.com/mozilla/gecko-dev.git
33 строки
865 B
JavaScript
33 строки
865 B
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Based on npm coding standards at https://docs.npmjs.com/misc/coding-style.
|
|
*
|
|
* The places we differ from the npm coding style:
|
|
* - Commas should be at the end of a line.
|
|
* - Always use semicolons.
|
|
* - Functions should not have whitespace before params.
|
|
*/
|
|
|
|
module.exports = {
|
|
"env": {
|
|
"node": true
|
|
},
|
|
|
|
"rules": {
|
|
"camelcase": "error",
|
|
"curly": ["error", "multi-line"],
|
|
"handle-callback-err": ["error", "er"],
|
|
"indent-legacy": ["error", 2, {"SwitchCase": 1}],
|
|
// Longer max-len due to AST selectors
|
|
"max-len": ["error", 150, 2],
|
|
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
"no-shadow": "error",
|
|
"no-undef-init": "error",
|
|
"object-curly-spacing": "off",
|
|
"one-var": ["error", "never"],
|
|
"operator-linebreak": ["error", "after"],
|
|
"strict": ["error", "global"],
|
|
},
|
|
};
|