-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
43 lines (43 loc) · 1.04 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
module.exports = {
parser: '@babel/eslint-parser',
extends: ['airbnb-base', 'prettier'],
globals: { fetch: false },
env: {
browser: false,
es6: true,
jest: false,
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
plugins: ['prettier'],
rules: {
'class-methods-use-this': 0,
'eol-last': 0,
'max-len': [
'error',
{ code: 80, tabWidth: 2, ignoreComments: true, ignoreStrings: true },
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
'import/prefer-default-export': 0,
'no-trailing-spaces': ['error', { skipBlankLines: true }],
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'no-debugger': 1,
indent: ['error', 2],
'arrow-parens': [0],
'function-paren-newline': [0],
'implicit-arrow-linebreak': 'off',
'no-use-before-define': ['error', { functions: false }],
'prettier/prettier': 'error',
},
};