← All code files

eslint.config.js

Flat ESLint config for modern JavaScript with recommended rules.

import js from '@eslint/js';

export default [
  js.configs.recommended,
  {
    languageOptions: {
      ecmaVersion: 2023,
      sourceType: 'module',
    },
    rules: {
      'no-unused-vars': 'warn',
      'no-console': 'off',
    },
  },
];

About this tool

Flat ESLint config for modern JavaScript with recommended rules.

Ready-to-use eslint.config.js — view the content, copy it, or download it with the correct filename. Free and 100% in your browser.