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
recommendedConfig:js.configs.recommended, // optional unless using "eslint:recommended"
81
+
allConfig:js.configs.all, // optional unless using "eslint:all"
82
82
});
83
83
84
84
module.exports= [
@@ -110,6 +110,17 @@ module.exports = [
110
110
];
111
111
```
112
112
113
+
## Troubleshooting
114
+
115
+
**TypeError: Missing parameter 'recommendedConfig' in FlatCompat constructor**
116
+
117
+
The `recommendedConfig` option is required when any config uses `eslint:recommended`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:recommended` config.
118
+
119
+
**TypeError: Missing parameter 'allConfig' in FlatCompat constructor**
120
+
121
+
The `allConfig` option is required when any config uses `eslint:all`, including any config in an `extends` clause. To fix this, follow the example above using `@eslint/js` to provide the `eslint:all` config.
0 commit comments