2021-11-12 17:27:10 +01:00
|
|
|
|
/**
|
|
|
|
|
* Overrides to our base ESLint configuration specifically for our integration tests.
|
|
|
|
|
*/
|
|
|
|
|
module.exports = {
|
|
|
|
|
rules: {
|
|
|
|
|
// To support code running in Node without transpiling.
|
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
|
'no-underscore-dangle': ['error', { allow: ['__BROWSER_GLOBAL__'] }],
|
|
|
|
|
// So we can lint the code without resolving imports, in case the sub-package isn’t installed.
|
|
|
|
|
'import/no-unresolved': 'off',
|
|
|
|
|
},
|
|
|
|
|
env: {
|
|
|
|
|
jest: true,
|
|
|
|
|
browser: true,
|
|
|
|
|
node: true,
|
|
|
|
|
},
|
|
|
|
|
globals: {
|
2021-12-12 01:07:30 +01:00
|
|
|
|
page: 'readonly',
|
|
|
|
|
TEST_ORIGIN: 'readonly',
|
2021-11-12 17:27:10 +01:00
|
|
|
|
},
|
|
|
|
|
};
|