puppeteer/test/.eslintrc.js

34 lines
798 B
JavaScript
Raw Normal View History

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*'],
},
],
},
overrides: [
{
files: ['*.spec.ts'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
],
'no-restricted-syntax': [
2023-06-12 08:44:18 +00:00
'error',
{
message:
'Use helper command `launch` to make sure the browsers get cleaned',
selector:
'MemberExpression[object.name="puppeteer"][property.name="launch"]',
},
],
},
},
],
};