Frontend Config Generator (tsconfig, ESLint, Prettier, EditorConfig)
Pick your framework, strictness and code style, read why each setting is there, and download matching config files plus the install command.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Pick a preset
Tap the preset closest to your project, such as Vite + React or Node API.
- 2Adjust the project options
Set framework, language, strictness, module type, alias and package manager.
- 3Set your code style
Choose indent, quotes, semicolons, line width, trailing commas and line endings.
- 4Read the reasons
Check the table explaining each compiler option and switch comments on or off.
- 5Install the packages
Copy the install command and run it in your project folder.
- 6Download the files
Download the ZIP, put the files in your project root and copy the scripts into package.json.
이 도구 소개
Every new JavaScript or TypeScript project starts with the same four or five config files, and most people copy them from an old project or a blog post without knowing which lines still matter. Since ESLint 9, the old .eslintrc format is no longer read, so many copied configs silently stop working. TypeScript added new module resolution modes for bundlers and for Node, and picking the wrong pair produces confusing import errors. Prettier and ESLint can also fight over formatting unless they are connected properly. This generator writes a consistent set from a few questions. Choose the kind of project: React with Vite, Next.js, Vue, Svelte or SvelteKit, a plain browser app, a Node.js service or an npm library that ships type declarations. Choose TypeScript or JavaScript, how strict the type checks should be, whether the package is an ES module, and an import alias such as @/ for src. Then set your code style once: indent with two or four spaces or tabs, quotes, semicolons, line width, trailing commas and line endings. The tool produces tsconfig.json (or jsconfig.json for JavaScript projects) with a comment above every option explaining what it does, an eslint.config.js in the current flat format with the right plugins for your framework, a Prettier config and ignore file that match your style, an .editorconfig so every editor agrees on indentation and line endings, and a scripts block for typecheck, lint and format. The install command lists exactly the packages those files import.
How the pieces fit together
TypeScript checks types; ESLint finds likely bugs such as unused variables, missing hook dependencies or unreachable code; Prettier formats; EditorConfig sets the basics in editors before any tool runs. eslint-config-prettier is added last in the ESLint config so that no ESLint rule disagrees with Prettier. The same indent, width and line ending values are used in Prettier and EditorConfig.
Strictness levels
Strict turns on TypeScript's strict family and flags unused locals and parameters. Strictest adds noUncheckedIndexedAccess, noImplicitOverride, exactOptionalPropertyTypes and noPropertyAccessFromIndexSignature, which catch real bugs but need more explicit code; it also uses the stricter typescript-eslint preset. Loose is for migrating existing JavaScript step by step.
Limits
This tool does not install packages, run ESLint or check your code. Framework tooling moves quickly; the files follow the documented formats of ESLint 9, typescript-eslint 8, Prettier 3 and TypeScript 5 as of late 2026, so check release notes if you use much older or newer versions. Next.js, Vue and SvelteKit projects created by their official starters already include some of these files: merge rather than overwrite.
풀이 예시
For a React project with Vite, TypeScript, strict checks, an @/* alias to src/*, two spaces, double quotes, semicolons and a 100-character line, the tsconfig sets target ES2022, module ESNext, moduleResolution bundler, jsx react-jsx, noEmit, verbatimModuleSyntax and strict, with 17 commented options in total. eslint.config.js imports @eslint/js, globals, typescript-eslint, eslint-plugin-react-hooks, eslint-plugin-react-refresh and eslint-config-prettier/flat. The install command is npm install --save-dev typescript eslint @eslint/js globals typescript-eslint eslint-plugin-react-hooks eslint-plugin-react-refresh eslint-config-prettier prettier.
한눈에 보기
- 카테고리: 개발 및 데이터
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: TypeScript TSConfig Reference, ESLint configuration files (flat config) and Prettier options
자주 묻는 질문
Why eslint.config.js instead of .eslintrc.json?
ESLint 9 made the flat config file eslint.config.js the default and stopped reading .eslintrc files unless you set a special environment variable. Flat config uses normal JavaScript imports for plugins, which makes it clearer which package provides which rules. The tool only writes the new format.
What is the difference between bundler and NodeNext module resolution?
bundler copies how Vite, webpack and Next.js resolve imports: no file extensions needed and package exports respected. NodeNext follows Node's own rules exactly, so relative imports in ES modules must include .js extensions. Use bundler for apps that a bundler builds and NodeNext for code that Node runs directly or for published libraries.
Can tsconfig.json contain comments?
Yes. TypeScript reads tsconfig.json as JSON with comments, so the explanations above each option are allowed. Some other tools that read the file may not accept comments; switch off Explain settings as comments if one complains.
Does the import alias work in my bundler?
The paths option only tells TypeScript and your editor about the alias. Next.js reads it automatically. Vite needs resolve.alias in vite.config or the vite-tsconfig-paths plugin, and Node needs imports in package.json or a loader. The note in the table reminds you of this.
Why does Prettier use LF line endings by default?
Git repositories, Linux servers and macOS use LF, and mixing LF and CRLF creates noisy diffs. Prettier 2 and later default to LF. Choose CRLF only if your whole team works on Windows and your Git settings convert line endings.
Can I use this for a plain JavaScript project?
Yes. Choose JavaScript and you get a jsconfig.json with checkJs, so VS Code still reports type errors from JSDoc comments, plus the same ESLint, Prettier and EditorConfig files without the TypeScript packages.
