Create an ESLint configuration with parser options, plugins, rules, and ignores.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Selected settings are serialized into a flat or legacy ESLint configuration object. The file configures linting but does not install plugins or run checks.
Framework: none Typescript: true Prettier: true Style: recommended Format: flat
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-config-prettier';
export default [
js.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
rules: {
"no-console": "warn",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"prefer-const": "error"
}
},
];
JavaScript repositories, CI pull-request checks, and editor diagnostics create ESLint configs.