mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
bf59524a62
commit
92b18b36e8
@ -193,6 +193,7 @@ toolkit/modules/tests/xpcshell/test_task.js
|
||||
toolkit/components/osfile/**
|
||||
|
||||
# External code:
|
||||
toolkit/components/microformats/test/**
|
||||
toolkit/components/reader/Readability.js
|
||||
toolkit/components/reader/JSDOMParser.js
|
||||
|
||||
|
@ -43,6 +43,9 @@
|
||||
// Space after colon not before in property declarations
|
||||
// "key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
|
||||
|
||||
// Require spaces before and after keywords
|
||||
// "keyword-spacing": 2,
|
||||
|
||||
// Unix linebreaks
|
||||
"linebreak-style": [2, "unix"],
|
||||
|
||||
@ -163,27 +166,18 @@
|
||||
// Always require semicolon at end of statement
|
||||
// "semi": [2, "always"],
|
||||
|
||||
// Require space after keywords
|
||||
// "space-after-keywords": 2,
|
||||
|
||||
// Require space before blocks
|
||||
// "space-before-blocks": 2,
|
||||
|
||||
// Never use spaces before function parentheses
|
||||
// "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
|
||||
// "space-in-parens": [2, "never"],
|
||||
|
||||
// Require spaces around operators
|
||||
// "space-infix-ops": 2,
|
||||
|
||||
// Require spaces after return, throw and case
|
||||
// "space-return-throw-case": 2,
|
||||
|
||||
// ++ and -- should not need spacing
|
||||
// "space-unary-ops": [2, { "words": true, "nonwords": false }],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user