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

Bug: Support eslint flat config #33

Open
Mnigos opened this issue Jun 11, 2024 · 0 comments
Open

Bug: Support eslint flat config #33

Mnigos opened this issue Jun 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Mnigos
Copy link

Mnigos commented Jun 11, 2024

Description

I got an error when using this plugin with flat config.

eslint.config.cjs

module.exports = tseslint.config(
  pluginJs.configs.recommended,
  ...tseslint.configs.strict,
  ...tseslint.configs.stylistic,
  ...trilonEslint.configs.recommended,
)
$ eslint "src/**/*.ts"

Oops! Something went wrong! :(

ESLint: 9.4.0

TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
    at Object.<anonymous> (/Users/igormakowski/Documents/repositories/rigtch/rigtch-fm-api/eslint.config.cjs:14:27)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at cjsLoader (node:internal/modules/esm/translators:345:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:294:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:431:15)
{
  "@trilon/eslint-plugin": "^0.2.1",
    "eslint": "^9.4.0",
}
@Mnigos Mnigos added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant