UNPKG

@pod-protocol/cli

Version:
54 lines (51 loc) 1.43 kB
import js from "@eslint/js"; import tseslint from "@typescript-eslint/eslint-plugin"; import tsparser from "@typescript-eslint/parser"; import globals from "globals"; export default [ js.configs.recommended, { files: ["src/**/*.ts"], languageOptions: { parser: tsparser, parserOptions: { ecmaVersion: "latest", sourceType: "module", project: "./tsconfig.json", }, globals: { ...globals.node, ...globals.es2021, }, }, plugins: { "@typescript-eslint": tseslint, }, rules: { // TypeScript specific rules "@typescript-eslint/no-unused-vars": [ "error", { argsIgnorePattern: "^_" }, ], "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-non-null-assertion": "warn", // General rules "no-console": "off", // CLI needs console output "no-unused-vars": "off", // Let TypeScript handle this "prefer-const": "error", "no-var": "error", }, }, { files: ["**/*.js"], languageOptions: { ecmaVersion: "latest", sourceType: "module", }, }, { ignores: ["dist/**", "node_modules/**", "**/*.d.ts", "src/test/**"], }, ];