Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
90e3cc1f
Commit
90e3cc1f
authored
8 years ago
by
Aaron Cannon
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Relaxed eslint rule no-unused-expressions (#724)
Now allows the use of short circuit and ternary expressions.
parent
91b32a27
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/eslint-config-react-app/index.js
+4
-1
packages/eslint-config-react-app/index.js
with
4 additions
and
1 deletion
+4
-1
packages/eslint-config-react-app/index.js
+
4
-
1
View file @
90e3cc1f
...
@@ -127,7 +127,10 @@ module.exports = {
...
@@ -127,7 +127,10 @@ module.exports = {
'
no-undef
'
:
'
error
'
,
'
no-undef
'
:
'
error
'
,
'
no-unexpected-multiline
'
:
'
warn
'
,
'
no-unexpected-multiline
'
:
'
warn
'
,
'
no-unreachable
'
:
'
warn
'
,
'
no-unreachable
'
:
'
warn
'
,
'
no-unused-expressions
'
:
'
warn
'
,
'
no-unused-expressions
'
:
[
'
warn
'
,
{
'
allowShortCircuit
'
:
true
,
'
allowTernary
'
:
true
}],
'
no-unused-labels
'
:
'
warn
'
,
'
no-unused-labels
'
:
'
warn
'
,
'
no-unused-vars
'
:
[
'
warn
'
,
{
'
no-unused-vars
'
:
[
'
warn
'
,
{
vars
:
'
local
'
,
vars
:
'
local
'
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets