@@ -18,7 +18,7 @@ const WorkboxWebpackPlugin = require('workbox-webpack-plugin')
18
18
const WatchMissingNodeModulesPlugin = require ( 'react-dev-utils/WatchMissingNodeModulesPlugin' )
19
19
const ModuleScopePlugin = require ( 'react-dev-utils/ModuleScopePlugin' )
20
20
const getCSSModuleLocalIdent = require ( 'react-dev-utils/getCSSModuleLocalIdent' )
21
- const ESLintPlugin = require ( 'eslint-webpack-plugin' )
21
+ // const ESLintPlugin = require('eslint-webpack-plugin')
22
22
const paths = require ( './paths' )
23
23
const modules = require ( './modules' )
24
24
const getClientEnvironment = require ( './env' )
@@ -727,25 +727,25 @@ module.exports = function (webpackEnv) {
727
727
// The formatter is invoked directly in WebpackDevServerUtils during development
728
728
formatter : isEnvProduction ? typescriptFormatter : undefined ,
729
729
} ) ,
730
- new ESLintPlugin ( {
731
- // Plugin options
732
- extensions : [ 'js' , 'mjs' , 'jsx' , 'ts' , 'tsx' ] ,
733
- formatter : require . resolve ( 'react-dev-utils/eslintFormatter' ) ,
734
- eslintPath : require . resolve ( 'eslint' ) ,
735
- context : paths . appSrc ,
736
- cache : true ,
737
- // ESLint class options
738
- cwd : paths . appPath ,
739
- resolvePluginsRelativeTo : __dirname ,
740
- baseConfig : {
741
- extends : [ require . resolve ( 'eslint-config-react-app/base' ) ] ,
742
- rules : {
743
- ...( ! hasJsxRuntime && {
744
- 'react/react-in-jsx-scope' : 'error' ,
745
- } ) ,
746
- } ,
747
- } ,
748
- } ) ,
730
+ // new ESLintPlugin({
731
+ // // Plugin options
732
+ // extensions: ['js', 'mjs', 'jsx', 'ts', 'tsx'],
733
+ // formatter: require.resolve('react-dev-utils/eslintFormatter'),
734
+ // eslintPath: require.resolve('eslint'),
735
+ // context: paths.appSrc,
736
+ // cache: true,
737
+ // // ESLint class options
738
+ // cwd: paths.appPath,
739
+ // resolvePluginsRelativeTo: __dirname,
740
+ // baseConfig: {
741
+ // extends: [require.resolve('eslint-config-react-app/base')],
742
+ // rules: {
743
+ // ...(!hasJsxRuntime && {
744
+ // 'react/react-in-jsx-scope': 'error',
745
+ // }),
746
+ // },
747
+ // },
748
+ // }),
749
749
] . filter ( Boolean ) ,
750
750
// Some libraries import Node modules but don't use them in the browser.
751
751
// Tell webpack to provide empty mocks for them so importing them works.
0 commit comments