import solid from "eslint-plugin-solid";
import tsParser from "@typescript-eslint/parser";

export default [
  {
    files: ["packages/**/*.{ts,tsx}"],
    languageOptions: {
      parser: tsParser,
    },
    plugins: { solid },
    rules: {
      "solid/reactivity": "error",
      "solid/no-destructure": "error",
      "solid/prefer-for": "warn",
      "solid/no-react-deps": "error",
      "solid/no-react-specific-props": "error",
    },
  },
  {
    ignores: ["node_modules/**", "dist/**", "coverage/**"],
  },
];
