forked from gympass/yoga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.03 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
module.exports = {
env: {
jest: true,
},
parser: 'babel-eslint',
plugins: ['react', 'prettier'],
extends: [
'airbnb',
'prettier',
'prettier/react',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': 'error',
'import/no-cycle': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'react/jsx-props-no-spreading': 'off',
'react/prop-types': [2, { ignore: ['theme'] }],
'import/no-extraneous-dependencies': 0,
'no-plusplus': 0,
'no-restricted-globals': 0,
'padding-line-between-statements': [
2,
{ blankLine: 'always', prev: ['const', 'var', 'let'], next: '*' },
{
blankLine: 'any',
prev: ['const', 'var', 'let'],
next: ['const', 'var', 'let'],
},
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'any', prev: 'directive', next: 'directive' },
],
},
globals: {
window: true,
fetch: false,
document: true,
HTMLElement: true,
},
};