Skip to content

Commit d13844b

Browse files
committed
add rule to avoid arrow parenthesis
1 parent 7d36b59 commit d13844b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintrc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
22
root: true,
3-
extends: "@react-native-community"
3+
extends: '@react-native-community',
4+
rules: {
5+
'arrow-parens': 'as-needed',
6+
},
47
};

.prettierrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ module.exports = {
22
bracketSpacing: false,
33
jsxBracketSameLine: true,
44
singleQuote: true,
5-
trailingComma: "all"
5+
trailingComma: 'all',
6+
arrowParens: 'avoid',
67
};

0 commit comments

Comments
 (0)