forked from mirrors/gecko-dev
		
	 4e35ed6e8a
			
		
	
	
		4e35ed6e8a
		
	
	
	
	
		
			
			MozReview-Commit-ID: EuxayyLNHNt --HG-- extra : rebase_source : f13b679204d89861e608adcb774a32cf8a960e43
		
			
				
	
	
		
			82 lines
		
	
	
	
		
			2.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			82 lines
		
	
	
	
		
			2.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| module.exports = { // eslint-disable-line no-undef
 | |
|   "extends": [
 | |
|     "../../.eslintrc.js"
 | |
|   ],
 | |
| 
 | |
|   "globals": {
 | |
|     "Components": true,
 | |
|     "dump": true,
 | |
|     "Iterator": true
 | |
|   },
 | |
| 
 | |
|   "env": { "browser": true },
 | |
| 
 | |
|   "rules": {
 | |
|     "block-scoped-var": "error",
 | |
|     // "brace-style": ["warn", "1tbs", {"allowSingleLine": true}],
 | |
|     "comma-dangle": "off",
 | |
|     "comma-spacing": ["warn", {"before": false, "after": true}],
 | |
|     "comma-style": ["warn", "last"],
 | |
|     // "complexity": "warn",
 | |
|     "consistent-return": "error",
 | |
|     //"curly": "error",
 | |
|     "dot-notation": "error",
 | |
|     "eol-last": "error",
 | |
|     "indent": ["warn", 2, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
 | |
|     // "key-spacing": ["warn", {"beforeColon": false, "afterColon": true}],
 | |
|     "keyword-spacing": "warn",
 | |
|     "max-nested-callbacks": ["error", 3],
 | |
|     "new-parens": "error",
 | |
|     "no-array-constructor": "error",
 | |
|     "no-cond-assign": "error",
 | |
|     "no-control-regex": "error",
 | |
|     "no-debugger": "error",
 | |
|     "no-delete-var": "error",
 | |
|     "no-dupe-args": "error",
 | |
|     "no-dupe-keys": "error",
 | |
|     "no-duplicate-case": "error",
 | |
|     "no-else-return": "error",
 | |
|     "no-eval": "error",
 | |
|     "no-extend-native": "error",
 | |
|     // "no-extra-bind": "error",
 | |
|     "no-extra-boolean-cast": "error",
 | |
|     "no-extra-semi": "warn",
 | |
|     "no-fallthrough": ["error", { "commentPattern": ".*[Ii]ntentional(?:ly)?\\s+fall(?:ing)?[\\s-]*through.*" }],
 | |
|     "no-lonely-if": "error",
 | |
|     "no-mixed-spaces-and-tabs": "error",
 | |
|     "no-multi-spaces": "warn",
 | |
|     "no-multi-str": "warn",
 | |
|     "no-native-reassign": "error",
 | |
|     "no-nested-ternary": "error",
 | |
|     "no-redeclare": "error",
 | |
|     "no-return-assign": "error",
 | |
|     "no-self-compare": "error",
 | |
|     "no-sequences": "error",
 | |
|     "no-shadow": "warn",
 | |
|     "no-shadow-restricted-names": "error",
 | |
|     // "no-spaced-func": "warn",
 | |
|     "no-throw-literal": "error",
 | |
|     "no-trailing-spaces": "error",
 | |
|     "no-undef": "error",
 | |
|     "no-unneeded-ternary": "error",
 | |
|     "no-unreachable": "error",
 | |
|     "no-unused-vars": ["error", { "varsIgnorePattern": "^C[ciur]$" }],
 | |
|     "no-with": "error",
 | |
|     "padded-blocks": ["warn", "never"],
 | |
|     "quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
 | |
|     "semi": ["error", "always", {"omitLastInOneLineBlock": true }],
 | |
|     "semi-spacing": ["warn", {"before": false, "after": true}],
 | |
|     "space-before-blocks": ["warn", "always"],
 | |
|     // "space-before-function-paren": ["warn", "never"],
 | |
|     "space-in-parens": ["warn", "never"],
 | |
|     "space-infix-ops": ["warn", {"int32Hint": true}],
 | |
|     // "space-unary-ops": ["warn", { "words": true, "nonwords": false }],
 | |
|     "strict": ["error", "global"],
 | |
|     "use-isnan": "error",
 | |
|     "valid-typeof": "error",
 | |
|     "yoda": "error"
 | |
|   }
 | |
| };
 | |
| 
 |