-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 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
module.exports = {
env: {
node: true,
es2021: true,
},
extends: ['airbnb-base', 'prettier'],
overrides: [
{
files: ['*.js', '*.mjs'],
},
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
indent: ['error', 2],
eqeqeq: 'off',
camelcase: [0, { properties: 'never' }],
'no-console': 'off',
'func-names': 'off',
'consistent-return': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'default-case': 'off',
'import/extensions': 'off',
'no-underscore-dangle': 'off',
'brace-style': 'off',
'import/no-unresolved': 'off',
'no-nested-ternary': 'off',
'no-await-in-loop': 'off',
'no-restricted-syntax': 'off',
'max-classes-per-file': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'object-curly-spacing': [
2,
'always',
{
objectsInObjects: true,
arraysInObjects: true,
},
],
'function-call-argument-newline': ['error', 'consistent'],
},
};