-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 926 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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
},
env: {
browser: true,
},
extends: 'airbnb',
rules: {
'arrow-parens': [2, 'as-needed', { requireForBlockBody: true }],
'brace-style': [2, 'stroustrup'],
'dot-notation': [2, { allowKeywords: true, allowPattern: '^_' }],
'function-paren-newline': 0,
'jsx-quotes': [2, 'prefer-single'],
'no-cond-assign': [2, 'except-parens'],
'no-console': 0,
'no-multi-assign': 0,
'no-multiple-empty-lines': [2, { max: 2, maxBOF: 0, maxEOF: 0 }],
'no-nested-ternary': 0,
'object-curly-newline': [2, { multiline: true, consistent: true }],
'operator-linebreak': [2, 'after'],
radix: [2, 'as-needed'],
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
strict: [2, 'global'],
},
overrides: [{ files: '*.jsx' }],
};