Loading topic
package.json. The structure of the config file is covered in the next chapter5 min readnpx eslint . from the command line. It also assumes you can read ES module syntax (import, export default) and are comfortable editing package.json. Choosing individual rules and severities gets its own chapter, 5 min readeslint.config.js file that exports an array of config objects, as covered in the previous chapters. Here you will learn how to turn individual rules on and off, pass options to them, and pick a severity level for each one that matches h4 min readeslint.config.js file, and that you know the three severity levels ("off", "warn", "error"). It explains how to start from rule sets other people maintain, how to add rules that ESLint does not ship with, and how to change 4 min read--fix flag works, which problems it can and cannot repair, and how to preview and limit fixes before they touch your files.5 min readeslint.config.js flat config, understand rule severities (off, warn, error), and can run eslint . from the command line. Prettier's ignore comments get their own chapter later. Here they appear only so you can compare them with ESLint's direc5 min readeslint.config.js flat config and Prettier installed with a .prettierrc file, as set up in earlier chapters. You should also know how flat config entries merge and how rule severities work.5 min readeslint-config-prettier keeps their rules from overlapping. You can run both from the terminal. This chapter moves that work into the editor, so problems show up as you type and files get fixed and formatted when you save.5 min readnpx. This chapter puts those commands into package.json scripts, so everyone on the team and every automated system runs them the same way. This chapter assumes you can edit package.json, run commands with npm, and have the ESLint flat confi5 min readlint and format npm scripts from the previous chapter, a working ESLint flat config, and Prettier installed. You should also be comfortable with git add, git commit, and the idea of a staging area.4 min readlint and format:check npm scripts from earlier chapters, a working ESLint flat config with eslint-config-prettier, and a project hosted on GitHub. You should also know basic Git branching and pull requests.6 min readeslint.config.js) works, what severity levels mean, and how eslint-config-prettier fits in. You also need a project with TypeScript installed and a tsconfig.json. You do not need to know TypeSc4 min read.eslintrc.* files. ESLint v9 made flat config (eslint.config.js) the default and deprecated the eslintrc format, and ESLint v10 removes it. This chapter shows how each legacy key maps to flat config. It also covers using the offici4 min read