eslint-config-geocoding
Shared eslint config for geocoding team. A very strict config including ES6 features.
To use this in a project
-
Add the following to the
devDependencies
of yourpackage.json
:{ "devDependencies": { "@mapbox/eslint-config-geocoding": "^1.0.0", "eslint": "^4.17.0", "eslint-plugin-node": "^5.2.1" } }
-
Extend the
@mapbox/eslint-config-geocoding
config in your.eslintrc
(oreslintConfig
key in yourpackage.json
):{ "extends": "@mapbox/eslint-config-geocoding" }
-
Run
eslint
on your project as part of yourtest
andlint
scripts:{ "scripts": { "test": "tape test/*.test.js && eslint *.js test/*.js", "lint": "eslint *.js test/*.js" } }