![]() ![]() Plugins - which third-party plugins define additional rules, environments, configs, etc.Rules - which rules are enabled and at what error level.Globals - the additional global variables your script accesses during execution.Each environment brings with it a certain set of predefined global variables. Environments - which environments your script is designed to run in. ![]() Here are some of the options that you can configure in 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. Configuration Files - use a JavaScript, JSON, or YAML file to specify configuration information for an entire directory and all of its subdirectories.Configuration Comments - use JavaScript comments to embed configuration information directly into a file.There are two primary ways to configure ESLint: 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. ESLint is designed to be flexible and configurable for your use case. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |