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,
|
2022-02-04 12:57:55 +01:00
|
|
|
|
node: true,
|
2021-11-12 17:27:10 +01:00
|
|
|
|
},
|
|
|
|
|
globals: {
|
2021-12-12 01:07:30 +01:00
|
|
|
|
page: 'readonly',
|
2022-02-04 12:57:55 +01:00
|
|
|
|
TEST_ORIGIN: 'readonly',
|
2021-11-12 17:27:10 +01:00
|
|
|
|
},
|
|
|
|
|
};
|