You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating our config files to this new format, we realized that the ReDos eslint plugin does not yet support this new file format.
More specifically, the rules attribute now has to be a JS object instead of an array of strings (see error below).
A config object has a "plugins" key defined as an array of strings.
Flat config requires "plugins" to be an object in this form:
{
plugins: {
redos: pluginObject
}
}
Would you be able to add support for this file format?
How to fix the problem?
eslint released a migration guide for eslint plugins to add support for flat-file configs
The text was updated successfully, but these errors were encountered:
For anyone stumbling upon this problem, until flat-file config support is added, you can use the ReDos plugin in your flat-file config like this:
import{FlatCompat}from"@eslint/eslintrc";constcompat=newFlatCompat({baseDirectory: import.meta.dirname,});constesConfigs=[// Rest of your config
...compat.extends("plugin:eslint-plugin-redos/recommended"),// Rest of your config]
What is the problem?
Since
[email protected]
,eslint
now support a new type of configuration file: the flat-file format.When migrating our config files to this new format, we realized that the ReDos eslint plugin does not yet support this new file format.
More specifically, the
rules
attribute now has to be a JS object instead of an array of strings (see error below).Would you be able to add support for this file format?
How to fix the problem?
eslint
released a migration guide for eslint plugins to add support for flat-file configsThe text was updated successfully, but these errors were encountered: