A worked example, rendered from real sample data. Sign in to run the tool on your own input.
env=browser ts=true react=truemodule.exports = {
env: { browser: true, es2023: true, node: true },
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: { ecmaVersion: 2023, sourceType: "module", ecmaFeatures: { jsx: true } },
plugins: ["@typescript-eslint", "react"],
rules: {
"no-unused-vars": "warn",
"no-console": ["warn", { allow: ["warn", "error"] }]
}
};
ESLint config for Node / TypeScript / React — commonjs output. Part of the DevTools Surf developer suite. Browse more tools in the Generators collection.