Bug 1257246: Update eslint rules for eslint 2. r=MattN

Rename the rules that ESLint 2 no longer supports to the new names. Ignore the
microformat test suite as it is external code.

MozReview-Commit-ID: BgIxFERjHp1

--HG--
extra : rebase_source : 9f02a87f9a843b427b021caa72db9eb766287151
extra : histedit_source : 954abc7e447ac6cdd36290ade7adec626f4fe4fb
This commit is contained in:
Dave Townsend 2016-04-05 11:33:12 -07:00
parent bf59524a62
commit 92b18b36e8
2 changed files with 4 additions and 9 deletions

View File

@ -193,6 +193,7 @@ toolkit/modules/tests/xpcshell/test_task.js
toolkit/components/osfile/** toolkit/components/osfile/**
# External code: # External code:
toolkit/components/microformats/test/**
toolkit/components/reader/Readability.js toolkit/components/reader/Readability.js
toolkit/components/reader/JSDOMParser.js toolkit/components/reader/JSDOMParser.js

View File

@ -43,6 +43,9 @@
// Space after colon not before in property declarations // Space after colon not before in property declarations
// "key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }], // "key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
// Require spaces before and after keywords
// "keyword-spacing": 2,
// Unix linebreaks // Unix linebreaks
"linebreak-style": [2, "unix"], "linebreak-style": [2, "unix"],
@ -163,27 +166,18 @@
// Always require semicolon at end of statement // Always require semicolon at end of statement
// "semi": [2, "always"], // "semi": [2, "always"],
// Require space after keywords
// "space-after-keywords": 2,
// Require space before blocks // Require space before blocks
// "space-before-blocks": 2, // "space-before-blocks": 2,
// Never use spaces before function parentheses // Never use spaces before function parentheses
// "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }], // "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
// Require spaces before finally, catch, etc.
// "space-before-keywords": [2, "always"],
// No space padding in parentheses // No space padding in parentheses
// "space-in-parens": [2, "never"], // "space-in-parens": [2, "never"],
// Require spaces around operators // Require spaces around operators
// "space-infix-ops": 2, // "space-infix-ops": 2,
// Require spaces after return, throw and case
// "space-return-throw-case": 2,
// ++ and -- should not need spacing // ++ and -- should not need spacing
// "space-unary-ops": [2, { "words": true, "nonwords": false }], // "space-unary-ops": [2, { "words": true, "nonwords": false }],