-
Notifications
You must be signed in to change notification settings - Fork 31
/
.eslintrc.js
54 lines (54 loc) · 1.02 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
53
54
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
'jest/globals': true,
},
extends: [
'eslint:recommended',
'airbnb-base',
],
plugins: ['jest'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
indent: [
'error',
2,
],
'linebreak-style': [
'error',
'unix',
],
quotes: [
'error',
'single',
],
semi: [
'error',
'always',
],
'global-require': 0,
'no-underscore-dangle': 0,
'import/order': 0,
camelcase: 0,
'no-param-reassign': 0,
'no-use-before-define': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'no-continue': 0,
'arrow-parens': ['error', 'as-needed'],
'no-mixed-operators': 0,
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
};