0.1.3 • Published 3 years ago
@mapbox/eslint-plugin-gl-wrapper v0.1.3
eslint-plugin-gl-wrapper
Assert that GLWrapper is imported when mapbox-gl is imported.
Install
npm install @mapbox/eslint-plugin-gl-wrapper
In the eslint configuration, extend the plugin:
"extends": ["plugin:@mapbox/gl-wrapper/recommended"]
Developing
To run tests:
npm test
To test eslint plugin (this will lint tests/test-code/eslint-gl-wrapper-error.js):
npm run lint-gl-wrapper