github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/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 }, 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 };