Skip to content

Commit 91bf5ee

Browse files
giubandvictor-travelperk
authored andcommitted
Change to DISABLE_ESLINT
1 parent 694a2a2 commit 91bf5ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docusaurus/docs/advanced-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ You can adjust various development and production settings by setting environmen
2727
| EXTEND_ESLINT | ✅ Used | ✅ Used | When set to `true`, user provided ESLint configs will be used by `eslint-loader`. Note that any rules set to `"error"` will stop the application from building. |
2828
| FAST_REFRESH | ✅ Used | 🚫 Ignored | When set to `true`, enables experimental support for fast refresh to allow you to tweak your components in real time without reloading the page. |
2929
| TSC_COMPILE_ON_ERROR | ✅ Used | ✅ Used | When set to `true`, you can run and properly build TypeScript projects even if there are TypeScript type check errors. These errors are printed as warnings in the terminal and/or browser console. |
30-
| DISABLE_ESLINT_DEV | ✅ Used | 🚫 Ignored | If set to `true`, ESLint will be disabled when compiling the code for running the development server. Useful to allow developers to use non-production-ready code while still developing a feature or inspecting an issue. ESLint will still run on production builds to detect possible problems. |
30+
| DISABLE_ESLINT | ✅ Used | ✅ Used | When set to `true`, ESLint won't run when compiling the code. |

packages/react-scripts/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ module.exports = function (webpackEnv) {
354354
{
355355
test: /\.(js|mjs|jsx|ts|tsx)$/,
356356
enforce: 'pre',
357-
use: isEnvDevelopment && process.env.DISABLE_ESLINT_DEV === 'true'
357+
use: process.env.DISABLE_ESLINT === 'true'
358358
? undefined
359359
: [
360360
{

0 commit comments

Comments
 (0)