Skip to content
GitLab
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
ca2e9f0f
Unverified
Commit
ca2e9f0f
authored
6 years ago
by
Joe Haddad
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Adjust ESLint configuration for v5 (#5051)
parent
58e00a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/eslint-config-react-app/index.js
+2
-4
packages/eslint-config-react-app/index.js
with
2 additions
and
4 deletions
+2
-4
packages/eslint-config-react-app/index.js
+
2
-
4
View file @
ca2e9f0f
...
@@ -39,12 +39,10 @@ module.exports = {
...
@@ -39,12 +39,10 @@ module.exports = {
},
},
parserOptions
:
{
parserOptions
:
{
ecmaVersion
:
6
,
ecmaVersion
:
2018
,
sourceType
:
'
module
'
,
sourceType
:
'
module
'
,
ecmaFeatures
:
{
ecmaFeatures
:
{
jsx
:
true
,
jsx
:
true
,
generators
:
true
,
experimentalObjectRestSpread
:
true
,
},
},
},
},
...
@@ -53,7 +51,7 @@ module.exports = {
...
@@ -53,7 +51,7 @@ module.exports = {
'
array-callback-return
'
:
'
warn
'
,
'
array-callback-return
'
:
'
warn
'
,
'
default-case
'
:
[
'
warn
'
,
{
commentPattern
:
'
^no default$
'
}],
'
default-case
'
:
[
'
warn
'
,
{
commentPattern
:
'
^no default$
'
}],
'
dot-location
'
:
[
'
warn
'
,
'
property
'
],
'
dot-location
'
:
[
'
warn
'
,
'
property
'
],
eqeqeq
:
[
'
warn
'
,
'
allow-null
'
],
eqeqeq
:
[
'
warn
'
,
'
smart
'
],
'
new-parens
'
:
'
warn
'
,
'
new-parens
'
:
'
warn
'
,
'
no-array-constructor
'
:
'
warn
'
,
'
no-array-constructor
'
:
'
warn
'
,
'
no-caller
'
:
'
warn
'
,
'
no-caller
'
:
'
warn
'
,
...
...
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