The official shareable ESLint config for the Cesium ecosystem.
Usage
We export three ESLint configurations.
eslint-config-cesium
This config contains basic Cesium syntax and style config, from which browser
and node
extend. Extends eslint:recommended
with additional rules.
eslint-config-cesium/browser
For use in AMD
modules and browser code.
eslint-config-cesium/node
For use in node
packages.
To use any of these configs,
-
npm install eslint-config-cesium --save-dev
If using the browser
config: npm install eslint-plugin-html --save-dev
-
Add "extends": "cesium"
to your .eslintrc.*
files