mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ffec2475d0
* chore: enforce file extensions on imports To make our output agnostic it should include file extensions in the output, as per the ESM spec. It's a bit odd for Node packages but makes it easier to publish a browser build.
14 lines
276 B
JavaScript
14 lines
276 B
JavaScript
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*'],
|
|
},
|
|
],
|
|
},
|
|
};
|