text: const rules = {
    ON: 2,
    OFF: 0,
    WARN: 1,
  };
  
  module.exports = {
    parser: "@typescript-eslint/parser",
    plugins: ["react-hooks"],
    parserOptions: {
      ecmaVersion: 2018,
      ecmaFeatures: {
        jsx: true,
      },
      sourceType: "module",
    },
    extends: [
      "plugin:@typescript-eslint/recommended",
      "plugin:react/recommended",
      "eslint-config-prettier",
    ],
    rules: {
      "react/prop-types": rules.OFF,
      "react-hooks/rules-of-hooks": rules.ON,
      "react-hooks/exhaustive-deps": rules.WARN,
      "prefer-spread": rules.WARN,
    },
    settings: {
      react: {
        version: "detect",
      },
    },
  };
  