.eslintrc.js 654 B

1234567891011121314151617181920212223242526
  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. settings: {
  22. 'import/resolver': {
  23. webpack: null,
  24. }
  25. },
  26. };