2020-07-13 09:22:26 +00:00
|
|
|
module.exports = {
|
|
|
|
rules: {
|
|
|
|
'no-restricted-imports': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
/** The mocha tests run on the compiled output in the /lib directory
|
|
|
|
* so we should avoid importing from src.
|
|
|
|
*/
|
|
|
|
patterns: ['*src*'],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-05-11 13:10:27 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.spec.ts'],
|
|
|
|
rules: {
|
|
|
|
'no-restricted-syntax': [
|
|
|
|
'warn',
|
|
|
|
{
|
|
|
|
message:
|
|
|
|
'Use helper command `launch` to make sure the browsers get cleaned',
|
|
|
|
selector:
|
|
|
|
'MemberExpression[object.name="puppeteer"][property.name="launch"]',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-07-13 09:22:26 +00:00
|
|
|
};
|