-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
46 lines (46 loc) · 948 Bytes
/
index.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
44
45
46
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
browser: true,
node: true,
es6: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
},
],
'max-len': [1, { ignoreStrings: true }],
'no-param-reassign': [
2,
{
props: false,
},
],
'no-console': 'error',
'no-plusplus': 0,
'no-underscore-dangle': 0,
'prefer-rest-params': 0,
'comma-dangle': [
2,
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'import/no-extraneous-dependencies': [2, { devDependencies: true }],
'import/order': 0,
},
};