hunk.code_window:   const rect = element.getBoundingClientRect();
     let scaleX = 1;
     let scaleY = 1;
     if (isHTMLElement(element) && includeScale) {
       // Fallback to 1 in case both values are `0`
  
hunk.labels: keep keep keep keep add keep
hunk.after_edit:     const offsetHeight = element.offsetHeight;
       const offsetWidth = element.offsetWidth;
       // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
  
hunk.file_path: src/dom-utils/getBoundingClientRect.js
hunk.type: add
file: module.exports = {
    parser: 'babel-eslint',
    plugins: ['flowtype', 'unused-imports', 'import'],
    rules: {
      'flowtype/require-valid-file-annotation': ['error', 'always'],
      'unused-imports/no-unused-imports': 'error',
      'unused-imports/no-unused-vars': 'error',
      'import/no-unused-modules': ['error', { unusedExports: true }],
      'flowtype/use-flow-type': 1,
    },
    ignorePatterns: [
      'docs',
      'node_modules',
      'tests',
      'lib',
      'flow-typed',
      'dist',
      '/*.js',
      'coverage',
    ],
  };
  