forked from 6RiverSystems/eslint-config-6river
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (51 loc) · 1.07 KB
/
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
47
48
49
50
51
52
53
'use strict';
const config = {
extends: 'google',
plugins: ['import', 'mocha'],
rules: {
'max-len': ['error', 120, 2],
'prefer-const': ['error'],
indent: [
'error',
'tab',
{
MemberExpression: 0,
},
],
'no-tabs': 'off',
'dot-location': ['error', 'property'],
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-console': ['error'],
'no-undef': ['error'],
'no-var': ['error'],
strict: ['error', 'global'],
'object-shorthand': 'error',
'no-await-in-loop': 'error',
eqeqeq: 'error',
'require-jsdoc': 'off',
'mocha/no-exclusive-tests': 'error',
'space-in-parens': ['error', 'never'],
'arrow-spacing': 'error',
'arrow-parens': 'error',
'import/order': [
'error',
{
groups: [['builtin'], ['external'], ['internal', 'parent', 'sibling', 'index']],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
},
},
],
'import/no-self-import': 'error',
'import/newline-after-import': 'error',
},
env: {
node: true,
mocha: true,
},
parserOptions: {
ecmaVersion: 11,
},
};
module.exports = config;