{
  "extends": "airbnb-base",
  "parser": "@babel/eslint-parser",
  "env": {
    "browser": true,
    "node": true,
    "mocha": true,
    "worker": true
  },
  "parserOptions": {
    // airbnb-base sets this to "modules" for ESM but CJS is being used
    "sourceType": "script"
  },
  "rules": {
    "strict": ["error", "global"],
    "no-underscore-dangle": 0,
    "no-console": 0,
    "global-require": 0,
    "camelcase": 0,
    "no-control-regex": 0,
    // Airbnb disallows ForOfStatement based on the bizarre belief that loops are not readable
    // https://github.com/airbnb/javascript/issues/1271
    "no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
    // The `prefer-destructuring` rule causes issues
    // https://github.com/naptha/tesseract.js/issues/847
    "prefer-destructuring": 0,
    "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
  }
}
