Skip to content

Commit

Permalink
add rule to avoid arrow parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
LonelyCpp committed Apr 7, 2020
1 parent 7d36b59 commit d13844b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
root: true,
extends: "@react-native-community"
extends: '@react-native-community',
rules: {
'arrow-parens': 'as-needed',
},
};
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: "all"
trailingComma: 'all',
arrowParens: 'avoid',
};

0 comments on commit d13844b

Please sign in to comment.