javascript
javascript copied to clipboard
eslint new config spec support
I'm not sure if there is one yet. l We use 4 eslint plugins, and only 1 of the 4 (perhaps 2) have that support yet, so we couldn't even attempt it until then.
I have used the FlatCompat class to use the existing config.
@ljharb how would you prefer eslint-config-airbnb to provide support for the new config format - by updating the existing exports to the new format (breaking change, the new format cannot be used from eslintrc config files) or by adding new, separate exports?
@mdjermanovic definitely not the breaking change. Can it support it yet tho if the dependent plugins don’t?
@ljharb The import plugin doesn't support it fully, but as far as I understand, including import/parsers in settings on your side as in https://github.com/import-js/eslint-plugin-import/issues/2556#issuecomment-1419518561 would resolve the main issue. import/no-unused-modules doesn't work, see the discussion here https://github.com/import-js/eslint-plugin-import/pull/2829, but it is disabled in airbnb config anyway. Still, waiting until it figures out full support may be better.