-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 978 Bytes
/
.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
module.exports = {
extends: [
'airbnb',
'airbnb-typescript',
],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'react/prop-types': 0,
'react/require-default-props': 0,
'newline-after-var': 2,
'react/function-component-definition': [2, { 'namedComponents': 'arrow-function' }],
'react/no-unstable-nested-components': [2, { 'allowAsProps': true }],
'react/jsx-no-constructed-context-values': 0,
'react/jsx-max-props-per-line': [2, { 'maximum': { 'single': 2, 'multi': 1 } } ],
'react/jsx-curly-spacing': [2, {
'when': 'never',
'children': {
'when': 'never'
}
}],
'react/jsx-props-no-spreading': 0,
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: '*', next: 'multiline-expression' },
],
},
};