diff options
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 32a65861..91e6cb09 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -42,6 +42,8 @@ module.exports = { 'no-console': ['error', { allow: ['error', 'warn', 'debug'] }], // classes blocks 'padded-blocks': ['error', { classes: 'always' }], + // always add a trailing comma, for diff readability + 'comma-dangle': ["error", "only-multiline"], // always have the operator in front 'operator-linebreak': ['error', 'before'], // ternary on multiline |