-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.3 KB
/
.eslintrc.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
parser: 'babel-eslint',
extends: 'airbnb',
env: {
browser: true,
jest: true,
},
rules: {
'no-underscore-dangle': 0,
'class-methods-use-this': 0, //
'arrow-parens': 0, // Prettier messes this one up
'no-plusplus': 0,
'no-use-before-define': 0,
'import/no-extraneous-dependencies': [2, { devDependencies: true }],
'function-paren-newline': 0,
'react/prop-types': 0, // We are using flow instead
'react/jsx-filename-extension': 0, // Prefer .js
'react/prefer-stateless-function': 1, // Just warn
'jsx-a11y/accessible-emoji': 0, // Because I was lazy
'jsx-a11y/anchor-is-valid': [
'error',
{
// So the "to" prop in Link and NavLink are considered ok
specialLink: ['to'],
},
],
'lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }],
'implicit-arrow-linebreak': 0,
'react/jsx-one-expression-per-line': 0,
'react/destructuring-assignment': 0,
'object-curly-newline': 0,
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
},
},
},
// Add enzymes shallow, render, mount to be valid global vars
globals: {
shallow: true,
render: true,
mount: true,
__PROD__: true,
__DEV__: true,
__TEST__: true,
},
};