-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,578 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module.exports = { | ||
parser : "babel-eslint", | ||
extends : "airbnb-base", | ||
rules : { | ||
|
||
// Enforce the consistent use of double quotes | ||
quotes : ["error", "double", { avoidEscape: true }], | ||
|
||
// Allow bitwise operators | ||
"no-bitwise" : "off", | ||
|
||
// Allow the unary operators ++ and -- | ||
"no-plusplus" : "off", | ||
|
||
// Require or disallow trailing commas | ||
"comma-dangle": ["error", "only-multiline"], | ||
|
||
// Disallow Reassignment of Function Parameters | ||
"no-param-reassign" : ["error", { props: false }], | ||
|
||
// Enforce consistent spacing between keys and values in object literal properties | ||
"key-spacing" : ["error", { | ||
singleLine : { | ||
beforeColon : false, | ||
afterColon : true | ||
}, | ||
multiLine : { | ||
beforeColon : true, | ||
afterColon : true, | ||
mode : "minimum" | ||
} | ||
}], | ||
|
||
// Disallow multiple spaces | ||
"no-multi-spaces" : ["error", { ignoreEOLComments: true }], | ||
|
||
// Require or disallow padding within blocks | ||
"padded-blocks": ["error", { classes: "always" }] | ||
} | ||
}; |
Oops, something went wrong.