ESLint configuration rules can be modified in the. You can customize the ESLint configuration to allow console.log statements without producing an error message. In some cases, removing console.log statements may not be a priority. Step 5 - Customizing ESLint RulesĪs is, ESLint produces a highlighted message for all console.log() statements in app.js. The process of having to run two commands to lint and format our file is not very convenient. These can be fixed by customizing the ESLint configuration to catch or ignore specific errors and formatting issues. The prettier configuration will override any prior configuration in the extends array disabling all ESLint code formatting rules.With this configuration, Prettier and ESLint can be run separately without any issues. There are still some remaining error messages.
0 Comments
Leave a Reply. |