Skip to content

Commit 758a9d2

Browse files
committed
Make eslint rules not require yield for generators, and added function naming standards
1 parent ce8e08a commit 758a9d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.eslintrc

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"no-constant-condition": 0,
2929
"no-useless-escape": 0,
3030
"no-console": "error",
31+
"require-yield": 0,
3132
"eqeqeq": ["error", "smart"],
3233
"spaced-comment": [
3334
"warn",
@@ -113,6 +114,12 @@
113114
"leadingUnderscore": "allow",
114115
"trailingUnderscore": "allowSingleOrDouble"
115116
},
117+
{
118+
"selector": "function",
119+
"format": ["camelCase", "PascalCase"],
120+
"leadingUnderscore": "allow",
121+
"trailingUnderscore": "allowSingleOrDouble"
122+
},
116123
{
117124
"selector": "variable",
118125
"format": ["camelCase", "UPPER_CASE", "PascalCase"],

0 commit comments

Comments
 (0)