I’ve installed typescript-eslint and it works great when I have the following config:
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended
);
However, when I add a new rule to the config, it stops working entirely:
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-floating-promises": "error",
},
}
);
I’m literally just following their docs. I have no clue why this is not working.