mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 13:08:06 -05:00
rearrange comma-dangle rule to match es5/es6 codestyles, fixes #741
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
module.exports = {
|
||||
'rules': {
|
||||
// disallow trailing commas in object literals
|
||||
'comma-dangle': [2, 'always-multiline'],
|
||||
// disallow assignment in conditional expressions
|
||||
'no-cond-assign': [2, 'always'],
|
||||
// disallow use of console
|
||||
|
||||
@@ -30,6 +30,8 @@ module.exports = {
|
||||
// require space before/after arrow function's arrow
|
||||
// https://github.com/eslint/eslint/blob/master/docs/rules/arrow-spacing.md
|
||||
'arrow-spacing': [2, { 'before': true, 'after': true }],
|
||||
// require trailing commas in multiline object literals
|
||||
'comma-dangle': [2, 'always-multiline'],
|
||||
// verify super() callings in constructors
|
||||
'constructor-super': 0,
|
||||
// enforce the spacing around the * in generator functions
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
module.exports = {
|
||||
'rules': {
|
||||
// disallow trailing commas in object literals
|
||||
'comma-dangle': [2, 'never'],
|
||||
// specify the maximum depth that blocks can be nested
|
||||
'max-depth': [0, 4],
|
||||
// limits the number of parameters that can be used in the function declaration.
|
||||
|
||||
Reference in New Issue
Block a user