0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 09:33:54 +01:00
wagtail/client/tests/integration/.eslintrc.js
Thibaud Colas af942a27e4
Reformat codebase with Prettier (#7912)
- Automated reformatting
- Manually change code where Prettier reformatting causes issues
- Revert "Disable Prettier formatting in CI for now"
2022-02-04 11:57:55 +00:00

22 lines
585 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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,
},
globals: {
page: 'readonly',
TEST_ORIGIN: 'readonly',
},
};