-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc.tests.js
29 lines (25 loc) · 827 Bytes
/
.eslintrc.tests.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
/*
* (c) Copyright IBM Corp. 2022
*/
'use strict';
/**
* The basic eslint configuration for all tests. Eslint configs in the individual /test directories in the packages
* explicitly inherit from this configuration via extends.
*/
module.exports = {
extends: './.eslintrc.js',
// see https://github.com/eslint/eslint/issues/13385#issuecomment-641252879
root: true,
env: {
mocha: true
},
rules: {
// we routinely use dependencies from the root package.json in tests
'import/no-extraneous-dependencies': 'off',
// this custom rule is only meant for production code
'instana/no-unsafe-require': 'off',
// tests can freely require dependencies from other packages via relative path
'monorepo-cop/no-relative-import-outside-package': 'off',
'no-unused-expressions': 'off'
}
};