ESLint plugin

The essential plugin for use with the Atlassian Design System.

no-dark-theme-vr-tests

Dark theme VR tests are redundant. See this RFC, (opens new window)

Incorrect

import { snapshot } from '@af/visual-regression';

snapshot(ComponentName, {
    variants: [
        {
            name: 'Light',
            environment: {
                colorScheme: 'light',
            },
        },
        {
            name: 'Dark',
            environment: {
                colorScheme: 'dark',
                ^^^^^^^^^^^^^^^^^^^^ invalid
            },
        },
    ],
});

Correct

import { snapshot } from '@af/visual-regression';

snapshot(ComponentName, {
    variants: [
        {
            name: 'Light',
            environment: {
                colorScheme: 'light',
            },
        },
    ],
});
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License