forked from chili-epfl/FROG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
94 lines (94 loc) · 2.61 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
module.exports = {
plugins: ['flowtype', 'prettier'],
globals: {
document: true,
test: true,
expect: true,
history: true,
window: true,
FileReader: true,
Blob: true,
WebSocket: true,
Presences: true,
jest: true,
Raven: true,
Meteor: true
},
rules: {
'jsx-a11y/aria-proptypes': 'off',
'react/jsx-no-target-blank': 'off',
'flowtype/generic-spacing': 'off',
'flowtype/no-types-missing-file-annotation': 'off',
'class-methods-use-this': 'off',
'consistent-return': 'off',
'dot-notation': 'off',
'flowtype/space-after-type-colon': 'off',
'func-names': 'off',
'import/extensions': 'off',
'import/no-absolute-path': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-default': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/anchor-has-content': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/href-no-hash': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/media-has-caption': 'off',
'jsx-a11y/heading-has-content': 'off',
'no-confusing-arrow': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-constant-condition': 'off',
'no-else-return': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': ['error', { props: false }],
'no-return-assign': 'off',
'no-throw-literal': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': [
'error',
{
argsIgnorePattern: '_',
varsIgnorePattern: '_',
ignoreRestSiblings: true
}
],
'no-use-before-define': 'off',
'prefer-destructuring': 'off',
'prefer-template': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-indent': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-wrap-multilines': 'off',
'react/no-multi-comp': 'off',
'react/no-unescaped-entities': 'off',
'react/no-unused-state': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/sort-comp': 'off',
'jsx-a11y/mouse-events-have-key-events': 'off',
'global-require': 'off'
},
parserOptions: {
ecmaVersion: 2016,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
es6: true,
node: true,
browser: true
},
extends: [
'airbnb',
'plugin:flowtype/recommended',
'prettier',
'prettier/react'
]
};