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
f4a53eea
Commit
f4a53eea
authored
8 years ago
by
Ville Immonen
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Remove eslintConfig from package.json (#649)
parent
052336db
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/init.js
+0
-5
scripts/init.js
template/README.md
+1
-4
template/README.md
with
1 addition
and
9 deletions
+1
-9
scripts/init.js
+
0
-
5
View file @
f4a53eea
...
...
@@ -30,11 +30,6 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
'
eject
'
:
'
react-scripts eject
'
};
// explicitly specify ESLint config path for editor plugins
appPackage
.
eslintConfig
=
{
extends
:
'
./node_modules/react-scripts/config/eslint.js
'
,
};
fs
.
writeFileSync
(
path
.
join
(
appPath
,
'
package.json
'
),
JSON
.
stringify
(
appPackage
,
null
,
2
)
...
...
This diff is collapsed.
Click to expand it.
template/README.md
+
1
-
4
View file @
f4a53eea
...
...
@@ -157,7 +157,7 @@ You would need to install an ESLint plugin for your editor first.
><img src="http://i.imgur.com/yVNNHJM.png" width="300">
Then
make sur
e
`package.json`
of your project
ends with this block
:
Then
add this block to th
e
`package.json`
file
of your project:
```
js
{
...
...
@@ -168,9 +168,6 @@ Then make sure `package.json` of your project ends with this block:
}
```
Projects generated with
`react-scripts@0.2.0`
and higher should already have it.
If you don’t need ESLint integration with your editor, you can safely delete those three lines from your
`package.json`
.
Finally, you will need to install some packages
*globally*
:
```
sh
...
...
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