UNPKG

unico-js

Version:

A Javascript library to interact with the UNICO API.

25 lines (22 loc) 908 B
// @ts-check import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; export default tseslint.config({ extends: [eslint.configs.recommended, tseslint.configs.recommended, tseslint.configs.stylistic], rules: { "no-console": ["warn", { allow: ["error", "warn"] }], "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }, ], quotes: ["warn", "single"], semi: ["error", "always"], eqeqeq: ["error", "always"], "@typescript-eslint/explicit-function-return-type": "error", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/consistent-type-imports": ["error", { prefer: "type-imports" }], "@typescript-eslint/ban-ts-comment": "off", }, ignores: ["**/*.config.*", "node_modules/**/*", "dist/**/*", ".git/", ".vscode/", ".github/", ".idea/"], });