0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/tests/integration/.eslintrc.js

22 lines
585 B
JavaScript
Raw Normal View History

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 isnt installed.
'import/no-unresolved': 'off',
},
env: {
jest: true,
browser: true,
node: true,
2021-11-12 17:27:10 +01:00
},
globals: {
page: 'readonly',
TEST_ORIGIN: 'readonly',
2021-11-12 17:27:10 +01:00
},
};