NDLANO / eslint-config-ndla-h5p

eslint configuration for H5P content type projects
MIT License
0 stars 0 forks source link

Add H5P globals #3

Closed otacke closed 1 year ago

otacke commented 1 year ago

When merged in, the default configuration will make H5P, H5PEditor and H5PIntegration known to eslint as global variables and set the flag to readonly as those should not be written to.

(note: Technically, H5PIntegration should not be read either, but there are cases where the API of H5P core still doesn't provide any other way to learn about a couple of parameters that one may need.)