File tree 1 file changed +6
-3
lines changed
packages/react-scripts/scripts/utils
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ const fs = require('fs');
13
13
const semver = require ( 'semver' ) ;
14
14
const path = require ( 'path' ) ;
15
15
16
+ const isESLintPluginEnabled = process . env . DISABLE_ESLINT_PLUGIN !== 'true' ;
17
+
16
18
// We assume that having wrong versions of these
17
19
// in the tree will likely break your setup.
18
20
// This is a relatively low-effort way to find common issues.
@@ -21,14 +23,15 @@ function verifyPackageTree() {
21
23
// These are packages most likely to break in practice.
22
24
// See https://github.com/facebook/create-react-app/issues/1795 for reasons why.
23
25
// I have not included Babel here because plugins typically don't import Babel (so it's not affected).
24
- 'babel-eslint' ,
25
26
'babel-jest' ,
26
27
'babel-loader' ,
27
- 'eslint' ,
28
28
'jest' ,
29
29
'webpack' ,
30
30
'webpack-dev-server' ,
31
- ] ;
31
+ isESLintPluginEnabled && 'babel-eslint' ,
32
+ isESLintPluginEnabled && 'eslint' ,
33
+ ] . filter ( Boolean ) ;
34
+
32
35
// Inlined from semver-regex, MIT license.
33
36
// Don't want to make this a dependency after ejecting.
34
37
const getSemverRegex = ( ) =>
You can’t perform that action at this time.
0 commit comments