-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
66 lines (66 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
extends: [
'xo',
'plugin:ramda/recommended'
],
plugins: [
'mocha',
'ramda'
],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
ecmaFeatures: { jsx: true }
},
env: {
node: true,
es6: true
},
globals: {
_: false
},
rules: {
'indent': ['error', 4, { MemberExpression: 'off' }],
'no-restricted-syntax': [
'error',
'ForStatement',
'WhileStatement',
'SwitchStatement',
'VariableDeclaration[kind="var"]',
'VariableDeclaration[kind="let"]',
'WithStatement',
'MethodDefinition[kind="get"]',
'MethodDefinition[kind="set"]'
],
'semi': ['error', 'never'],
'capitalized-comments': ['off'],
'no-useless-escape': ['off'],
'quotes': ['error', 'single', { allowTemplateLiterals: false }],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-console': ['error'],
'operator-linebreak': ['error', 'before'],
'object-curly-spacing': ['error', 'always'],
'mocha/no-exclusive-tests': ['error'],
'unicorn/no-process-exit': ['off'],
'unicorn/no-abusive-eslint-disable': ['off'],
'xo/catch-error-name': ['off'],
'import/prefer-default-export': ['off'],
'import/no-dynamic-require': ['off'],
},
overrides: [{
files: 'test/**/*.js',
globals: {
before: false,
beforeEach: false,
after: false,
afterEach: false,
describe: false,
it: false
},
rules: {
'handle-callback-err': ['off'],
'no-unused-expressions': ['off'],
'import/default': ['off']
}
}]
}