eslint-config-homeoffice
v2.2.0
Published
Eslint settings for Home Office projects
Downloads
174
Readme
eslint-config-homeoffice
This is the eslint
configuration used on a variety of UKHomeOffice projects, including:
The version of eslint
currently supported is 0.23.0
.
Configurations
Two configurations are currently supported:
- default
- this is used for all frontend and node code
- testing
- this adds in a few globals required for testing with mocha, and disables a few of the rules to make the tests more readable
They can be used as following:
Default:
extends:
- "homeoffice/config/default"
Testing:
extends:
- '../.eslintrc'
- 'homeoffice/config/testing'
Note: To inherit from your project settings, you will need to inherit them first then override them using the testing configuration, due to the order of overrides