wagtail/client/tests/integration/.eslintrc.js

22 wiersze
585 B
JavaScript
Czysty Wina Historia

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* 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',
},
};