-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (34 loc) · 854 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
33
34
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
extends: ['airbnb-typescript'],
rules: {
'arrow-parens': [1, 'as-needed'],
'react/jsx-fragments': [1, 'element'],
'react/jsx-props-no-spreading': [
0,
{
html: 'ignore',
custom: 'ignore',
exceptions: [],
},
],
'implicit-arrow-linebreak': 0,
'react/jsx-curly-newline': 0,
'react/jsx-one-expression-per-line': 0,
'jsx-quotes': ['error', 'prefer-single'],
'object-curly-newline': 0,
'import/prefer-default-export': 0,
'operator-linebreak': 0,
'function-paren-newline': 0,
},
settings: {
'import/resolver': {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
};