Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load eslint.config.js TypeError: (intermediate value).toSorted is not a function #117

Closed
KyongJ opened this issue Jan 6, 2025 · 1 comment · Fixed by #118
Closed

Comments

@KyongJ
Copy link

KyongJ commented Jan 6, 2025

This error occurred while loading the configuration file. My configuration file was generated by default

import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';

/** @type {import('eslint').Linter.Config[]} */
export default [
  { files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
  { languageOptions: { globals: { ...globals.browser, ...globals.node } } },
  pluginJs.configs.recommended,
  ...tseslint.configs.recommended,
  pluginReact.configs.flat.recommended
]
@RafaelFerreiraTVD
Copy link

RafaelFerreiraTVD commented Jan 6, 2025

same issue to me. using 0.6.0 seems to be working well

@antfu antfu closed this as completed in c7ed332 Jan 8, 2025
renovate bot added a commit to mmkal/eslint-plugin-mmkal that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants