UNPKG

laravel-echo

Version:

Laravel Echo library for beautiful Pusher and Socket.IO integration

42 lines (39 loc) 1.56 kB
import tsParser from "@typescript-eslint/parser"; import tsPlugin from "@typescript-eslint/eslint-plugin"; const config = [ { files: [ "typings/**/*.ts", "src/**/*.ts" ], languageOptions: { parser: tsParser, // Use the imported parser object parserOptions: { ecmaVersion: "latest", sourceType: "module", project: "./tsconfig.json", // Path to your TypeScript configuration file }, }, plugins: { "@typescript-eslint": tsPlugin, }, rules: { ...tsPlugin.configs.recommended.rules, ...tsPlugin.configs["recommended-requiring-type-checking"].rules, "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-object-type": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-unsafe-argument": "warn", "@typescript-eslint/no-unsafe-assignment": "warn", "@typescript-eslint/no-unsafe-call": "warn", "@typescript-eslint/no-unsafe-function-type": "off", "@typescript-eslint/no-unsafe-member-access": "warn", "@typescript-eslint/no-unsafe-return": "warn", "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], "no-console": "warn", "prefer-const": "off", }, }, ]; export default config;