This repository was archived by the owner on Apr 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
51 lines (51 loc) · 1.23 KB
/
.eslintrc.js
File metadata and controls
51 lines (51 loc) · 1.23 KB
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
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
},
extends: ['airbnb-base', 'plugin:jest/recommended', 'plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
fetch: 'readonly',
yup: 'readonly',
moment: 'readonly',
sdk: 'readonly',
bluebird: 'readonly',
faker: 'readonly',
flaverr: 'readonly',
graphqlPubSub: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
},
plugins: ['jest'],
rules: {
camelcase: 'off',
'no-console': 'warn',
'no-trailing-spaces': 'off',
'global-require': 'off',
'padded-blocks': 'off',
'no-unused-vars': 'warn',
'no-return-assign': 'off',
'no-param-reassign': ['error', { props: false }],
radix: 'warn',
'max-len': ['error', { code: 120, comments: 200, ignoreTrailingComments: true, ignoreUrls: true }],
'prettier/prettier': ['error'],
},
overrides: [
{
files: ['tests/**/*.js'],
rules: {
'func-names': 'off',
'no-unused-vars': 'off',
'no-console': 'warn',
'no-return-assign': 'off',
'jest/no-commented-out-tests': 'off',
'prefer-const': 'off',
'no-new': 'off'
},
},
],
};