Skip to content

Commit

Permalink
chore(eslint): require curly braces for multiline control statements
Browse files Browse the repository at this point in the history
Avoid things like aws#10406
  • Loading branch information
jogold committed Sep 17, 2020
1 parent dbdc7ff commit f3dbe83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cdk-build-tools/config/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
'keyword-spacing': ['error'], // require a space before & after keywords
'brace-style': ['error', '1tbs', { allowSingleLine: true }], // enforce one true brace style
'space-before-blocks': 'error', // require space before blocks
'curly': ['error', 'multi-line', 'consistent'], // require curly braces for multiline control statements

// Require all imported dependencies are actually declared in package.json
'import/no-extraneous-dependencies': [
Expand Down

0 comments on commit f3dbe83

Please sign in to comment.