import { defineConfig, globalIgnores } from 'eslint/config';
import globals from 'globals';
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';
import json from '@eslint/json';
import markdown from '@eslint/markdown';
import css from '@eslint/css';
export default defineConfig([
globalIgnores(['dist']),
{
files: [
'**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
plugins: {
js,
},
extends: [
'js/recommended',
],
languageOptions: {
ecmaVersion: 2023,
globals: globals.browser,
},
},
tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
files: [
'**/*.json',
],
plugins: {
json,
},
language: 'json/json',
extends: [
'json/recommended',
],
},
{
files: [
'**/*.jsonc',
],
plugins: {
json,
},
language: 'json/jsonc',
extends: [
'json/recommended',
],
},
{
files: [
'**/*.json5',
],
plugins: {
json,
},
language: 'json/json5',
extends: [
'json/recommended',
],
},
{
files: [
'**/*.md',
],
plugins: {
markdown,
},
language: 'markdown/gfm',
extends: [
'markdown/recommended',
],
},
{
files: [
'**/*.css',
],
plugins: {
css,
},
language: 'css/css',
extends: [
'css/recommended',
],
},
]);
Is there an existing issue for this?
Description Overview
After updating my ESLint config using
bun create @eslint/config@latestwhen I runbun run lintI get an error in the console.Config file:
Expected Behavior
bun run lintlints the project.eslint-plugin-react version
^7.37.5
eslint version
^9.39.2
node version
v25.2.1