2
0

.eslintrc.js 585 B

123456789101112131415161718192021
  1. /**
  2. * Overrides to our base ESLint configuration specifically for our integration tests.
  3. */
  4. module.exports = {
  5. rules: {
  6. // To support code running in Node without transpiling.
  7. '@typescript-eslint/no-var-requires': 'off',
  8. 'no-underscore-dangle': ['error', { allow: ['__BROWSER_GLOBAL__'] }],
  9. // So we can lint the code without resolving imports, in case the sub-package isn’t installed.
  10. 'import/no-unresolved': 'off',
  11. },
  12. env: {
  13. jest: true,
  14. browser: true,
  15. node: true,
  16. },
  17. globals: {
  18. page: 'readonly',
  19. TEST_ORIGIN: 'readonly',
  20. },
  21. };