UNPKG

865 BJavaScriptView Raw
1module.exports = {
2 env: {
3 'browser': true
4 },
5 globals: {
6 'require': true,
7 'module': true
8 },
9 parser: 'babel-eslint',
10 extends: ['eslint-config-airbnb'].map(require.resolve),
11 rules: {
12 'max-len': [2, 120],
13 'no-debugger': 1,
14 'max-nested-callbacks': [1, 3],
15 'no-console': 1,
16 'indent': [2, 4, {'SwitchCase': 1}],
17 'react/jsx-indent': [2, 4],
18 'react/jsx-indent-props': [2, 4],
19 'jsx-quotes': [2, 'prefer-single'],
20 'arrow-parens': [2, 'always'],
21 'max-depth': [1, 4],
22 'react/prefer-es6-class': 0,
23 'react/prop-types': [2, {'ignore': ['eventStream', 'children']}],
24 'complexity': [1, 15],
25 'import/no-unresolved': 0,
26 'arrow-body-style': 0,
27 'no-param-reassign': 0,
28 'no-empty-pattern': 0
29 }
30};
\No newline at end of file