Skip to main content
POST
ESLint Config Generator

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ioFormat
enum<string>

Config Format

Available options:
flat,
legacy
ioFramework
enum<string>

Framework / Environment

Available options:
vanilla,
node,
react,
nextjs,
vue,
typescript
ioStyleGuide
enum<string>

Style Guide

Available options:
none,
airbnb,
standard,
google,
prettier
ioUseTypescript
boolean

Use TypeScript (@typescript-eslint)

ioEcmaVersion
enum<string>

ecmaVersion

Available options:
latest,
2024,
2023,
2022,
2021,
2020,
2019,
2018
ioSourceType
enum<string>

sourceType

Available options:
module,
commonjs,
script
ioEnvBrowser
boolean

browser globals (window, document, fetch)

ioEnvNode
boolean

node globals (process, require, __dirname)

ioEnvJest
boolean

jest globals (describe, test, expect)

ioEnvMocha
boolean

mocha globals

ioRuleSemi
enum<string>

semi (require semicolons)

Available options:
error,
warn,
off
ioRuleQuotes
enum<string>

quotes

Available options:
single,
double,
backtick,
off
ioRuleIndent
enum<string>

indent

Available options:
2,
4,
tab,
off
ioRuleNoUnusedVars
enum<string>

no-unused-vars

Available options:
error,
warn,
off
ioRuleNoConsole
enum<string>

no-console

Available options:
error,
warn,
off
ioRuleEqeqeq
enum<string>

eqeqeq (strict equality)

Available options:
error,
warn,
off
ioRulePreferConst
enum<string>

prefer-const

Available options:
error,
warn,
off
ioRuleNoVar
enum<string>

no-var

Available options:
error,
warn,
off
ioIncludeComments
boolean

Include inline comments explaining each option

ioIncludeHeader
boolean

Include descriptive header comment

ioIncludeInstall
boolean

Include npm install command at top

Response

Tool output

tool
string
required
tool_version
string
required

Output-contract version for this tool. Currently "1" for all tools.

outputs
object
required
credits_used
integer
required

Credits this call consumed, after any settlement refund. 0 when metering is disabled.

request_id
string
credits_remaining
integer | null

Credits left in the current monthly allowance, or null when metering is disabled.