@rosskevin/ifvisible
Version:
Cross-browser, lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)
15 lines (12 loc) • 323 B
JavaScript
import tseslint from 'typescript-eslint'
import af from '@alienfast/eslint-config'
// npx @eslint/config-inspector
export default tseslint.config(
{
name: 'project',
extends: [...af.configs.recommended],
},
{
ignores: ['eslint.config.mjs', 'jest.config.cjs', 'tsup.config.ts', 'docs/index.js*'],
},
)