github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/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: 2017,
    12      sourceType: 'module',
    13      ecmaFeatures: {
    14        experimentalObjectRestSpread: true,
    15      },
    16    },
    17    rules: {
    18      indent: ['error', 2, { SwitchCase: 1 }],
    19      'linebreak-style': ['error', 'unix'],
    20      quotes: ['error', 'single', 'avoid-escape'],
    21      semi: ['error', 'always'],
    22      'no-constant-condition': [
    23        'error',
    24        {
    25          checkLoops: false,
    26        },
    27      ],
    28    },
    29  };