-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
54 lines (52 loc) · 1.58 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
// @flow
module.exports = {
extends: ['airbnb', 'prettier'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
},
env: {
browser: true,
mocha: true,
node: true,
jest: true,
es2020: true,
},
rules: {
'indent': [2, 2],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-closing-bracket-location': 1,
'react/jsx-one-expression-per-line': 'off',
'react/jsx-wrap-multilines': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prefer-stateless-function': 'off',
'react/no-unused-prop-types': 'off',
'react/prop-types': 0,
'react/require-default-props': 0,
'react/sort-comp': 0,
'react/jsx-fragments': 'off',
'react/static-property-placement': ['warn', 'static public field'],
'react/jsx-curly-newline': 'off',
'class-methods-use-this': 0,
'no-console': 0,
'no-continue': 0,
'no-duplicate-imports': 0,
'object-curly-spacing': 1,
'spaced-comment': 1,
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'no-multiple-empty-lines': 1,
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'import/imports-first': 1,
'flowtype/define-flow-type': 1,
'flowtype/require-valid-file-annotation': [2, 'always'],
'flowtype/use-flow-type': 1,
'jsx-a11y/label-has-associated-control': 0,
'jsx-a11y/control-has-associated-label': 0,
'jsx-a11y/media-has-caption': 0,
},
plugins: ['import', 'promise', 'react', 'flowtype'],
};