{
  "plugins": ["typescript", "import"],
  "options": {
    "typeAware": true
  },
  "rules": {
    "accessor-pairs": [
      "error",
      {
        "enforceForClassMembers": true,
        "setWithoutGet": true
      }
    ],
    "array-callback-return": "error",
    "block-scoped-var": "error",
    "constructor-super": "error",
    "default-case-last": "error",
    "eqeqeq": ["error", "smart"],
    "new-cap": [
      "error",
      {
        "capIsNew": false,
        "newIsCap": true,
        "properties": true
      }
    ],
    "no-alert": "error",
    "no-array-constructor": "error",
    "no-async-promise-executor": "error",
    "no-caller": "error",
    "no-case-declarations": "error",
    "no-class-assign": "error",
    "no-compare-neg-zero": "error",
    "no-cond-assign": ["error", "always"],
    "no-console": [
      "error",
      {
        "allow": ["warn", "error"]
      }
    ],
    "no-const-assign": "error",
    "no-control-regex": "error",
    "no-debugger": "error",
    "no-delete-var": "error",
    "no-dupe-class-members": "error",
    "no-dupe-keys": "error",
    "no-duplicate-case": "error",
    "no-empty": [
      "error",
      {
        "allowEmptyCatch": true
      }
    ],
    "no-empty-character-class": "off",
    "no-empty-pattern": "error",
    "no-eval": "error",
    "no-ex-assign": "error",
    "no-extend-native": "error",
    "no-extra-bind": "error",
    "no-extra-boolean-cast": "error",
    "no-fallthrough": "error",
    "no-func-assign": "error",
    "no-global-assign": "error",
    "no-implied-eval": "error",
    "no-import-assign": "error",
    "no-invalid-regexp": "off",
    "no-irregular-whitespace": "error",
    "no-iterator": "error",
    "no-labels": [
      "error",
      {
        "allowLoop": false,
        "allowSwitch": false
      }
    ],
    "no-lone-blocks": "error",
    "no-loss-of-precision": "error",
    "no-misleading-character-class": "error",
    "no-multi-str": "error",
    "no-new": "error",
    "no-new-func": "error",
    "no-new-native-nonconstructor": "error",
    "no-new-wrappers": "error",
    "no-obj-calls": "error",
    "no-proto": "error",
    "no-prototype-builtins": "error",
    "no-redeclare": [
      "error",
      {
        "builtinGlobals": false
      }
    ],
    "no-regex-spaces": "error",
    "no-restricted-globals": [
      "error",
      {
        "message": "Use `globalThis` instead.",
        "name": "global"
      },
      {
        "message": "Use `globalThis` instead.",
        "name": "self"
      }
    ],
    "no-restricted-properties": [
      "error",
      {
        "message": "Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",
        "property": "__proto__"
      },
      {
        "message": "Use `Object.defineProperty` instead.",
        "property": "__defineGetter__"
      },
      {
        "message": "Use `Object.defineProperty` instead.",
        "property": "__defineSetter__"
      },
      {
        "message": "Use `Object.getOwnPropertyDescriptor` instead.",
        "property": "__lookupGetter__"
      },
      {
        "message": "Use `Object.getOwnPropertyDescriptor` instead.",
        "property": "__lookupSetter__"
      }
    ],
    "no-self-assign": [
      "error",
      {
        "props": true
      }
    ],
    "no-self-compare": "error",
    "no-sequences": "error",
    "no-shadow-restricted-names": "error",
    "no-sparse-arrays": "error",
    "no-template-curly-in-string": "error",
    "no-this-before-super": "error",
    "no-throw-literal": "error",
    "no-undef": "error",
    "no-unexpected-multiline": "error",
    "no-unmodified-loop-condition": "error",
    "no-unneeded-ternary": [
      "error",
      {
        "defaultAssignment": false
      }
    ],
    "no-unreachable": "error",
    "no-unreachable-loop": "error",
    "no-unsafe-finally": "error",
    "no-unsafe-negation": "error",
    "no-unused-expressions": [
      "error",
      {
        "allowShortCircuit": true,
        "allowTaggedTemplates": true,
        "allowTernary": true
      }
    ],
    "no-unused-vars": [
      "error",
      {
        "args": "none",
        "caughtErrors": "none",
        "ignoreRestSiblings": true,
        "vars": "all"
      }
    ],
    "no-use-before-define": [
      "error",
      {
        "classes": false,
        "functions": false,
        "variables": true
      }
    ],
    "no-useless-backreference": "off",
    "no-useless-call": "error",
    "no-useless-catch": "error",
    "no-useless-computed-key": "error",
    "no-useless-constructor": "error",
    "no-useless-rename": "error",
    "no-useless-return": "error",
    "no-var": "error",
    "no-with": "error",
    "object-shorthand": [
      "error",
      "always",
      {
        "avoidQuotes": true,
        "ignoreConstructors": false
      }
    ],
    "one-var": [
      "error",
      {
        "initialized": "never"
      }
    ],
    "prefer-arrow-callback": [
      "error",
      {
        "allowNamedFunctions": false,
        "allowUnboundThis": true
      }
    ],
    "prefer-const": [
      "error",
      {
        "destructuring": "all",
        "ignoreReadBeforeAssign": true
      }
    ],
    "prefer-exponentiation-operator": "error",
    "prefer-promise-reject-errors": "error",
    "prefer-regex-literals": [
      "error",
      {
        "disallowRedundantWrapping": true
      }
    ],
    "prefer-rest-params": "error",
    "prefer-spread": "error",
    "prefer-template": "error",
    "symbol-description": "error",
    "unicode-bom": ["error", "never"],
    "use-isnan": [
      "error",
      {
        "enforceForIndexOf": true,
        "enforceForSwitchCase": true
      }
    ],
    "valid-typeof": [
      "error",
      {
        "requireStringLiterals": true
      }
    ],
    "vars-on-top": "error",
    "yoda": ["error", "never"],
    "import/consistent-type-specifier-style": "error",
    "import/first": "error",
    "import/no-duplicates": "error",
    "import/no-mutable-exports": "error",
    "import/no-named-default": "error",
    "import/newline-after-import": [
      "error",
      {
        "count": 1
      }
    ],
    "typescript/dot-notation": [
      "error",
      {
        "allowKeywords": true
      }
    ]
  },
  "overrides": [
    {
      "files": [
        "**/*.[jt]s",
        "**/*.[jt]sx",
        "**/*.c[jt]s",
        "**/*.c[jt]sx",
        "**/*.m[jt]s",
        "**/*.m[jt]sx"
      ],
      "rules": {
        "node/handle-callback-err": ["error", "^(err|error)$"],
        "node/no-exports-assign": "error",
        "node/no-new-require": "error",
        "node/no-path-concat": "error",
        "jsdoc/check-access": "warn",
        "jsdoc/check-property-names": "warn",
        "jsdoc/empty-tags": "warn",
        "jsdoc/implements-on-classes": "warn",
        "jsdoc/no-defaults": "warn",
        "jsdoc/require-param-name": "warn",
        "jsdoc/require-property": "warn",
        "jsdoc/require-property-description": "warn",
        "jsdoc/require-property-name": "warn",
        "jsdoc/require-returns-description": "warn",
        "unicorn/consistent-empty-array-spread": "error",
        "unicorn/error-message": "error",
        "unicorn/escape-case": "error",
        "unicorn/new-for-builtins": "error",
        "unicorn/no-instanceof-builtins": "error",
        "unicorn/no-new-array": "error",
        "unicorn/no-new-buffer": "error",
        "unicorn/number-literal-case": "error",
        "unicorn/prefer-dom-node-text-content": "error",
        "unicorn/prefer-includes": "error",
        "unicorn/prefer-node-protocol": "error",
        "unicorn/prefer-number-properties": "error",
        "unicorn/prefer-string-starts-ends-with": "error",
        "unicorn/prefer-type-error": "error",
        "unicorn/throw-new-error": "error"
      },
      "plugins": ["node", "jsdoc", "unicorn"]
    },
    {
      "files": ["**/*.ts", "**/*.cts", "**/*.mts", "**/*.tsx", "**/*.ctsx", "**/*.mtsx"],
      "rules": {
        "constructor-super": "off",
        "getter-return": "off",
        "no-class-assign": "off",
        "no-const-assign": "off",
        "no-dupe-class-members": "off",
        "no-dupe-keys": "off",
        "no-func-assign": "off",
        "no-import-assign": "off",
        "no-new-native-nonconstructor": "off",
        "no-obj-calls": "off",
        "no-redeclare": "off",
        "no-setter-return": "off",
        "no-this-before-super": "off",
        "no-undef": "off",
        "no-unreachable": "off",
        "no-unsafe-negation": "off",
        "no-with": "off",
        "prefer-const": [
          "error",
          {
            "destructuring": "all",
            "ignoreReadBeforeAssign": true
          }
        ],
        "no-array-constructor": "off",
        "no-unused-expressions": "off",
        "no-unused-vars": "off",
        "no-useless-constructor": "off",
        "no-use-before-define": "off"
      }
    },
    {
      "files": [
        "**/__tests__/**/*.[jt]s",
        "**/__tests__/**/*.[jt]sx",
        "**/__tests__/**/*.c[jt]s",
        "**/__tests__/**/*.c[jt]sx",
        "**/__tests__/**/*.m[jt]s",
        "**/__tests__/**/*.m[jt]sx",
        "**/*.spec.[jt]s",
        "**/*.spec.[jt]sx",
        "**/*.spec.c[jt]s",
        "**/*.spec.c[jt]sx",
        "**/*.spec.m[jt]s",
        "**/*.spec.m[jt]sx",
        "**/*.test.[jt]s",
        "**/*.test.[jt]sx",
        "**/*.test.c[jt]s",
        "**/*.test.c[jt]sx",
        "**/*.test.m[jt]s",
        "**/*.test.m[jt]sx",
        "**/*.bench.[jt]s",
        "**/*.bench.[jt]sx",
        "**/*.bench.c[jt]s",
        "**/*.bench.c[jt]sx",
        "**/*.bench.m[jt]s",
        "**/*.bench.m[jt]sx",
        "**/*.benchmark.[jt]s",
        "**/*.benchmark.[jt]sx",
        "**/*.benchmark.c[jt]s",
        "**/*.benchmark.c[jt]sx",
        "**/*.benchmark.m[jt]s",
        "**/*.benchmark.m[jt]sx"
      ],
      "rules": {
        "no-unused-expressions": "off"
      }
    },
    {
      "files": [
        "**/*.md/**/*.[jt]s",
        "**/*.md/**/*.[jt]sx",
        "**/*.md/**/*.c[jt]s",
        "**/*.md/**/*.c[jt]sx",
        "**/*.md/**/*.m[jt]s",
        "**/*.md/**/*.m[jt]sx"
      ],
      "rules": {
        "no-alert": "off",
        "no-console": "off",
        "no-labels": "off",
        "no-lone-blocks": "off",
        "no-undef": "off",
        "no-unused-expressions": "off",
        "no-unused-labels": "off",
        "no-unused-vars": "off",
        "unicode-bom": "off"
      }
    },
    {
      "files": [
        "**/scripts/**/*.[jt]s",
        "**/scripts/**/*.[jt]sx",
        "**/scripts/**/*.c[jt]s",
        "**/scripts/**/*.c[jt]sx",
        "**/scripts/**/*.m[jt]s",
        "**/scripts/**/*.m[jt]sx",
        "**/cli/**/*.[jt]s",
        "**/cli/**/*.[jt]sx",
        "**/cli/**/*.c[jt]s",
        "**/cli/**/*.c[jt]sx",
        "**/cli/**/*.m[jt]s",
        "**/cli/**/*.m[jt]sx",
        "**/cli.[jt]s",
        "**/cli.[jt]sx",
        "**/cli.c[jt]s",
        "**/cli.c[jt]sx",
        "**/cli.m[jt]s",
        "**/cli.m[jt]sx",
        "**/*.config.[jt]s",
        "**/*.config.[jt]sx",
        "**/*.config.c[jt]s",
        "**/*.config.c[jt]sx",
        "**/*.config.m[jt]s",
        "**/*.config.m[jt]sx",
        "**/*.config.*.[jt]s",
        "**/*.config.*.[jt]sx",
        "**/*.config.*.c[jt]s",
        "**/*.config.*.c[jt]sx",
        "**/*.config.*.m[jt]s",
        "**/*.config.*.m[jt]sx"
      ],
      "rules": {
        "no-console": "off"
      }
    }
  ]
}
