-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is unique
- My issue appears in the command-line and not only in the text editor
Description Overview
After updating my ESLint config using bun create @eslint/config@latest when I run bun run lint I get an error in the console.
Config file:
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',
],
},
]);Expected Behavior
bun run lint lints the project.
eslint-plugin-react version
^7.37.5
eslint version
^9.39.2
node version
v25.2.1