eslint-config-airbnb-base
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
confusing-browser-globals | 1.0.11 | 2.03 kB | MIT | prod | |
eslint-plugin-import | 2.29.1 | 343.75 kB | MIT | prod peer | |
eslint | 8.57.0 | 2.9 MB | MIT | prod peer | |
object.assign | 4.1.5 | 18.68 kB | MIT | prod | |
object.entries | 1.1.8 | 31.8 kB | MIT | prod | |
semver | 6.3.1 | 18.65 kB | ISC | prod |
eslint-config-airbnb-base
is a popular npm package that provides Airbnb's base Javascript .eslintrc (sans React plugins) as an extensible shared configuration. This vital tool aids developers in adhering to Airbnb's JS code style guide, enhancing the quality, readability, and maintainability of their code. It includes rules for ECMAScript 6+ and demands the eslint
and eslint-plugin-import
dependencies.
To integrate eslint-config-airbnb-base
into your project, you will first need to install the correct versions of each package. You can retrieve this information by running the command npm info "eslint-config-airbnb-base@latest" peerDependencies
.
npm info "eslint-config-airbnb-base@latest" peerDependencies
If you are utilizing npm version 5 or above, you can employ the shortcut:
npx install-peerdeps --dev eslint-config-airbnb-base
Following the installation of the required dependencies, add "extends": "airbnb-base"
to your .eslintrc file.
If you need to lint ES5 or below, use "extends": "airbnb-base/legacy"
in your .eslintrc file instead.
Overall, usage of eslint-config-airbnb-base
might look something like this:
{
"extends": "airbnb-base",
"rules": {
// Additional, per-project rules...
}
}
Interested developers and Javascript enthusiasts can find comprehensive documentation for the eslint-config-airbnb-base
package on Airbnb's JavaScript GitHub. Additional information about ESLint configuration can be obtained from the ESLint documentation, providing a detailed guide on extending configuration files to meet your project-specific needs.