UNPKG

@zeix/ui-element

Version:

UIElement - minimal reactive framework based on Web Components

36 lines (34 loc) 855 B
import globals from "globals"; import pluginJs from "@eslint/js"; import tseslint from "typescript-eslint"; /** @type {import('eslint').Linter.Config[]} */ export default [ { ignores: ["index.js", "docs/assets/main.js", "**/*.min.js"], }, { files: ["**/*.{js,mjs,cjs,ts}"], }, { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs.recommended, { rules: { // we know what we're doing ;-) "@typescript-eslint/no-empty-object-type": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": [ "error", { args: "all", argsIgnorePattern: "^_", caughtErrors: "all", caughtErrorsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_", varsIgnorePattern: "^_", ignoreRestSiblings: true, }, ], }, }, ];