github.com/hernad/nomad@v1.6.112/ui/tests/.eslintrc.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  module.exports = {
     7    globals: {
     8      server: true,
     9      selectChoose: true,
    10      selectSearch: true,
    11      removeMultipleOption: true,
    12      clearSelected: true,
    13      getCodeMirrorInstance: true,
    14    },
    15    env: {
    16      embertest: true,
    17    },
    18    extends: ['plugin:qunit/recommended'],
    19    overrides: [
    20      {
    21        files: ['acceptance/**/*-test.js'],
    22        plugins: ['ember-a11y-testing'],
    23        rules: {
    24          'ember-a11y-testing/a11y-audit-called': 'error',
    25        },
    26        settings: {
    27          'ember-a11y-testing': {
    28            auditModule: {
    29              package: 'nomad-ui/tests/helpers/a11y-audit',
    30              exportName: 'default',
    31            },
    32          },
    33        },
    34      },
    35      {
    36        files: ['integration/components/**/*-test.js'],
    37        plugins: ['ember-a11y-testing'],
    38        rules: {
    39          'ember-a11y-testing/a11y-audit-called': 'error',
    40        },
    41        settings: {
    42          'ember-a11y-testing': {
    43            auditModule: {
    44              package: 'nomad-ui/tests/helpers/a11y-audit',
    45              exportName: 'componentA11yAudit',
    46            },
    47          },
    48        },
    49      },
    50    ],
    51  };