Open mlwyatt opened 1 year ago
Ah, that's interesting. Great find! Do you have a reproduction repository i could check?
Unfortunately, I don't. I was migrating a couple of my work projects, one of which is written in TS, to the flat config but then came across this saying the TS plugin won't be updated until the flat config is almost finished. Once I found out that, I just dropped it and moved on
I can say it appears to work for me. The only thing I needed to do is
const { FlatCompat } = require('@eslint/eslintrc');
const js = require('@eslint/js');
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});
module.exports = [
// what we had previously
...compat.extends('plugin:diff/diff'),
];
Are there any updates about ESLint's flat config support?
Either this plugin isn't compatible with ESLint's flat config file yet, or I'm not setting it up quite right.
Here's a simple example:
Config
```js import globals from 'globals'; import diff from 'eslint-plugin-diff'; export default [ { ...diff.configs.diff.overrides[0], plugins: { diff }, processor: diff.processors.diff, }, { rules: { 'no-console': ['error'], }, }, ]; ```Expected
Actual
Any help would be appreciated. Thanks in advance