-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
106 lines (102 loc) · 2.33 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
'use strict';
module.exports = {
root: true,
overrides: [
{
files: [
'**/*.js',
],
extends: [
'crowdstrike',
],
},
{
parserOptions: {
// eslint bug, not inheriting from eslint-config-crowdstrike correctly
ecmaVersion: require('eslint-config-crowdstrike').parserOptions.ecmaVersion,
},
files: [
'**/*.js',
'**/*.json',
],
excludedFiles: [
'docs/**/*.js',
],
extends: [
'crowdstrike-node',
],
rules: {
// https://github.com/eslint/eslint/issues/11899
'require-atomic-updates': 'off',
'faltest/no-browser-throttle': 'error',
},
},
{
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',
'mocha/no-empty-description': 'off',
'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',
},
},
{
files: [
'docs/**/*.js',
],
env: {
browser: true,
},
},
],
};