|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true |
| 4 | + }, |
| 5 | + "extends": "eslint:all", |
| 6 | + "parserOptions": { |
| 7 | + "ecmaVersion": 6 |
| 8 | + }, |
| 9 | + "rules": { |
| 10 | + "array-element-newline": ["error", "consistent"], |
| 11 | + "camelcase": "off", |
| 12 | + "capitalized-comments": "off", |
| 13 | + "comma-dangle": ["error", "only-multiline"], |
| 14 | + "curly": "off", |
| 15 | + "dot-location": ["error", "property"], |
| 16 | + "func-names": "off", |
| 17 | + "func-style": ["error", "declaration"], |
| 18 | + "function-call-argument-newline": "off", |
| 19 | + "id-length": ["error", { "min": 1 }], |
| 20 | + "key-spacing": ["error", { "align": "value" }], |
| 21 | + "max-len": ["error", { "code": 120 }], |
| 22 | + "max-lines": ["warn", 350], |
| 23 | + "max-params": ["warn", 5], |
| 24 | + "max-statements": ["warn", 40], |
| 25 | + "multiline-ternary": ["error", "always-multiline"], |
| 26 | + "new-cap": ["error", { "capIsNewExceptions": [ |
| 27 | + "BrowserOpenAddonsMgr", |
| 28 | + "ConvertToUnicode", |
| 29 | + "GetMsgHdrForKey", |
| 30 | + "GetMessageHeader", |
| 31 | + "MsgCopyMessage", |
| 32 | + "MsgHdrToMimeMessage", |
| 33 | + "MsgMoveMessage", |
| 34 | + "QueryInterface" |
| 35 | + ]}], |
| 36 | + "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }], |
| 37 | + "no-alert": "off", |
| 38 | + "no-continue": "off", |
| 39 | + "no-extra-parens": ["error", "functions"], |
| 40 | + "no-implicit-globals": "off", |
| 41 | + "no-magic-numbers": "off", |
| 42 | + "no-mixed-operators": "off", |
| 43 | + "no-plusplus": "off", |
| 44 | + "no-ternary": "off", |
| 45 | + "no-use-before-define": ["error", { "functions": false }], |
| 46 | + "nonblock-statement-body-position": "off", |
| 47 | + "object-curly-newline": ["error", { "consistent": true }], |
| 48 | + "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }], |
| 49 | + "object-shorthand": "off", |
| 50 | + "one-var": "off", |
| 51 | + "padded-blocks": "off", |
| 52 | + "prefer-arrow-callback": "off", |
| 53 | + "prefer-named-capture-group": "off", |
| 54 | + "prefer-template": "off", |
| 55 | + "quote-props" : ["error", "consistent-as-needed"], |
| 56 | + "require-jsdoc": "off", |
| 57 | + "require-unicode-regexp": "off", |
| 58 | + "space-before-function-paren": ["error", { |
| 59 | + "anonymous": "always", |
| 60 | + "named": "never" |
| 61 | + }], |
| 62 | + "strict": ["error", "global"], |
| 63 | + "wrap-iife": ["error", "any"] |
| 64 | + }, |
| 65 | + "globals": { |
| 66 | + "AddonManager": false, |
| 67 | + "BrowserOpenAddonsMgr": false, |
| 68 | + "Components": false, |
| 69 | + "FolderDisplayWidget": false, |
| 70 | + "gDBView": false, |
| 71 | + "gMessageDisplay": false, |
| 72 | + "gMessageListeners": false, |
| 73 | + "MailUtils": false, |
| 74 | + "MsgCopyMessage": false, |
| 75 | + "MsgHdrToMimeMessage": false, |
| 76 | + "MsgMoveMessage": false, |
| 77 | + "optionObserver": false, |
| 78 | + "Services": false |
| 79 | + } |
| 80 | +} |
0 commit comments