forked from CrowdStrike/faltest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
75 lines (72 loc) · 1.72 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
'use strict';
module.exports = {
root: true,
extends: [
'crowdstrike-node',
],
rules: {
// https://github.com/eslint/eslint/issues/11899
'require-atomic-updates': 'off',
'faltest/no-browser-throttle': 'error',
},
overrides: [
{
files: [
'packages/*/test/**/*-test.js',
'packages/mocha/src/role.js',
'examples/*/tests/**/*-test.js',
'fixtures/global-install/tests/**/*-test.js',
'fixtures/redact-password-test.js',
'fixtures/retries-test.js',
'test/**/*.js',
],
env: {
mocha: true,
},
plugins: [
'mocha',
'faltest',
],
extends: 'plugin:mocha/recommended',
rules: {
'mocha/no-hooks-for-single-case': 'off',
'mocha/no-setup-in-describe': 'off',
'mocha/no-identical-title': 'off',
'mocha/no-nested-tests': 'off',
'mocha/no-pending-tests': 'off',
'mocha/no-exclusive-tests': 'error',
'mocha/no-skipped-tests': 'error',
'faltest/chai-webdriver-eventually': 'error',
'faltest/mocha-roles-only': 'error',
'faltest/use-chai-methods': 'error',
},
},
{
files: [
'package.json',
'examples/*/package.json',
],
rules: {
// https://github.com/kellyselden/eslint-plugin-json-files/issues/2
'json-files/require-license': 'off',
},
},
{
files: [
'examples/**/*.js',
],
rules: {
// https://github.com/mysticatea/eslint-plugin-node/issues/77
'node/no-unpublished-require': 'off',
},
},
{
files: [
'scripts/**/*.js',
],
rules: {
'node/shebang': 'off',
},
},
],
};