-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
52 lines (52 loc) · 1.18 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
44
45
46
47
48
49
50
51
52
/* eslint-disable no-dupe-keys */
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
jest: true,
},
extends: ['airbnb-base'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
plugins: ['prettier'],
rules: {
semi: [0, 'never'],
'no-multiple-empty-lines': ['error', { max: 1 }],
'space-before-function-paren': [2, 'always'],
'no-underscore-dangle': 0,
'no-unused-vars': 0,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'function-paren-newline': ['error', 'multiline'],
'class-methods-use-this': 'off',
'max-len': [
'error',
{
code: 80,
tabWidth: 2,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
'function-paren-newline': 'off',
'implicit-arrow-linebreak': 'off',
},
};