This eslint configuration extends the Airbnb's configuration for their Javascript Style Guide. On top of that configuration we have our own namespaces and rules that are slightly different, which are enforced through the "baltimorecounty" configuration.
Create or modify a .eslintrc.json
eslint config file in the root of your project. It should read as follows:
{
"extends": [
"airbnb/legacy",
"baltimorecounty"
]
}
You need to install a couple packages in your project before you can lint your javascript
npm install eslint@^3.19.0 --save-dev
npm install eslint-config-airbnb --save-dev
npm install eslint-plugin-import@^2.2.0 --save-dev
npm install eslint-plugin-jsx-a11y@^5.1.1 --save-dev
-
npm install eslint-config-baltimorecounty --save-dev
npm package
At this time, the best way to enforce these styles is through Visual Studio Code. You need to download the eslint extension in order to use the configuration above.
TODO