github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/ui/.eslintrc.js (about)

     1  module.exports = {
     2    globals: {
     3      server: true,
     4    },
     5    env: {
     6      browser: true,
     7      es6: true,
     8    },
     9    extends: 'eslint:recommended',
    10    parserOptions: {
    11      ecmaVersion: 2018,
    12      sourceType: 'module',
    13    },
    14    rules: {
    15      indent: ['error', 2, { SwitchCase: 1 }],
    16      'linebreak-style': ['error', 'unix'],
    17      quotes: ['error', 'single', 'avoid-escape'],
    18      semi: ['error', 'always'],
    19      'no-constant-condition': [
    20        'error',
    21        {
    22          checkLoops: false,
    23        },
    24      ],
    25    },
    26    overrides: [
    27      // node files
    28      {
    29        files: [
    30          '.eslintrc.js',
    31          '.template-lintrc.js',
    32          'ember-cli-build.js',
    33          'testem.js',
    34          'blueprints/*/index.js',
    35          'config/**/*.js',
    36          'lib/*/index.js',
    37        ],
    38        parserOptions: {
    39          sourceType: 'script',
    40          ecmaVersion: 2015,
    41        },
    42        env: {
    43          browser: false,
    44          node: true,
    45        },
    46      },
    47    ],
    48  };