{
  "extends": [
    "plugin:@wordpress/eslint-plugin/recommended",
    "plugin:jest/recommended"
  ],
  "env": {
    "browser": true,
    "es6": true
  },
  "settings": {
    "react": {
      "version": "16.2.0"
    }
  },
  "globals": {
    "React": true,
    "googlesitekit": true,
    "googlesitekitAdminbar": true,
    "googlesitekitDashboard": true,
    "googlesitekitSettings": true,
    "lodash": true,
    "googlesitekitCurrentModule": true,
    "gtag": true,
    "process": true,
    "wp": true
  },
  "rules": {
    "valid-jsdoc": [
      "warn"
    ]
  },
  "overrides": [
    {
      "files": [
        "tests/e2e/**/*.js"
      ],
      "env": {
        "browser": true
      },
      "globals": {
        "browser": true,
        "page": true,
        "wp": true
      }
    }
  ]
}

{
  "extends": [
    "plugin:@wordpress/eslint-plugin/recommended",
    "plugin:jest/recommended"
  ],
  "env": {
    "browser": true,
    "es6": true
  },
  "settings": {
    "react": {
      "version": "16.2.0"
    }
  },
  "globals": {
    "React": "readonly",
    "googlesitekit": "readonly",
    "googlesitekitAdminbar": "readonly",
    "googlesitekitDashboard": "readonly",
    "googlesitekitSettings": "readonly",
    "lodash": "readonly",
    "googlesitekitCurrentModule": "readonly",
    "gtag": "readonly",
    "process": "readonly",
    "wp": "readonly"
  },
  "rules": {
    "valid-jsdoc": "warn"
  },
  "overrides": [
    {
      "files": [
        "tests/e2e/**/*.js"
      ],
      "env": {
        "browser": true
      },
      "globals": {
        "browser": true,
        "page": true,
        "wp": true
      }
    }
  ]
}

Declare globals as readonly in ESLint config
Declare globals as readonly in ESLint config
