Blame view

.eslintrc.js 670 Bytes
c39994410   Ryan Glover   wip converting to...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  module.exports = {
    'env': {
      'es6': true,
      'browser': true,
      'meteor': true,
      'node': true
    },
    'extends': 'eslint:recommended',
    'ecmaFeatures': {
      'jsx': true,
      'experimentalObjectRestSpread': true
    },
    'plugins': [
      'react'
    ],
    'globals': {
      'BlazeLayout': true,
      'Documents': true,
      'FlowRouter': true
    },
    'rules': {
      'comma-dangle': [2, 'never'],
      'eqeqeq': [2, 'smart'],
      'indent': [2, 2],
      'linebreak-style': [2, 'unix'],
      'no-unneeded-ternary': [2],
      'quotes': [2, 'single'],
      'semi': [2, 'always'],
      'space-infix-ops': [2],
      'space-in-parens': [2, 'always', { 'exceptions': ['{}'] }]
    }
  };