ESLint is designed to be flexible and configurable for your use case. You can turn off every rule and run only with basic syntax validation or mix and match the bundled rules and your custom rules to fit the needs of your project. There are two primary ways to configure ESLint:
.eslintrc.*
file or an eslintConfig
field in a package.json
file, both of which ESLint will look for and read automatically, or you can specify a configuration file on the command line.Here are some of the options that you can configure in ESLint:
All of these options give you fine-grained control over how ESLint treats your code.
ignorePatterns
in Config Files.eslintignore
File
© OpenJS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/latest/user-guide/configuring/