hardEngineering Practices#84

Custom ESLint rule idea

Prompt

Implement a custom ESLint rule that flags console.log statements. Define the rule as an object with meta and create(context); the visitor checks each CallExpression and reports when the callee is console.log (but not console.warn/error).

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code