-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
45 lines (45 loc) · 1.18 KB
/
index.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
module.exports = {
extends: 'eslint-config-airbnb',
parser: 'babel-eslint',
plugins: [
'markdown',
'flowtype',
],
rules: {
eqeqeq: ['error', 'smart'],
'react/jsx-filename-extension': 'off',
'guard-for-in': 'off',
'no-unexpected-multiline': 'error',
'no-restricted-syntax': [
'error',
'DebuggerStatement',
'LabeledStatement',
'WithStatement',
],
'no-plusplus': 'off',
'no-continue': 'off',
'flowtype/define-flow-type': 1,
'flowtype/use-flow-type': 1,
'no-console': [1, { allow: ['warn', 'error', 'info'] }],
'import/no-extraneous-dependencies': 'off',
'no-param-reassign': ['error', { props: false }],
'react/destructuring-assignment': 'off',
'prefer-destructuring': 'off',
},
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: { experimentalObjectRestSpread: true },
},
overrides: [{
files: ['*.md'],
rules: {
'no-unused-vars': 'off',
'import/no-unresolved': 'off',
'react/button-has-type': 'off',
'react/prop-types': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': 'off',
},
}],
};