eslint-config-standard
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
eslint-plugin-import | 2.29.1 | 343.75 kB | MIT | prod peer | |
eslint-plugin-n | 16.6.2 | 63.66 kB | MIT | prod peer | |
eslint-plugin-promise | 6.1.1 | 15.28 kB | ISC | prod peer | |
eslint | 8.57.0 | 2.9 MB | MIT | prod peer |
The ESLint-Config-Standard is an ESLint Shareable Config for JavaScript Standard Style. It essentially provides a set of linting rules that enforce the JavaScript standard style. By integrating this into your project, you can ensure cleaner, more consistent code that complies with industry standards across your team.
To use ESLint-Config-Standard, first, you need to install it. This can be done by executing the command npm install eslint-config-standard
in your terminal.
Once you have your ESLint-Config-Standard installed, you can set it up automatically by following these steps:
npx eslint --init
When prompted, choose 'Use a popular style guide', then select 'Standard'. Choose a config file format and confirm the installation of necessary dependencies when prompted.
If you'd prefer to set it up manually, you can run:
npm install --save-dev eslint-config-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node
And then update your .eslintrc
file with:
{
"extends": "standard"
}
This will extend the JavaScript standard style configuration for your project.
Remember, any settings from the shareable config can be overridden directly in your .eslintrc
file.
Detailed documentation on ESLint-Config-Standard can be found at the official ESLint website. After unlocking the potential of this powerful tool, you'll be well on your way to writing cleaner, higher-quality JavaScript code that adheres to industry standards.