The goal of this PR is to declare which browsers the DAP code will support and to add an automated mechanism to check that the DAP code actually does support those browsers.
The supported browsers policy is declared in .browserslistrc which uses the Browserslist configuration language.
The automated mechanism is a linter which uses the eslint-plugin-compat plugin to check JS code against a Browserslist policy.
The linter can be run with npm run lint. The current code is compatible with all of the required browsers so this command generates no output. It would make sense to eventually add this linting step as part of a CI/CD pipeline but, for now, it must be checked manually.
The goal of this PR is to declare which browsers the DAP code will support and to add an automated mechanism to check that the DAP code actually does support those browsers.
The supported browsers policy is declared in .browserslistrc which uses the Browserslist configuration language.
The automated mechanism is a linter which uses the eslint-plugin-compat plugin to check JS code against a Browserslist policy.
The linter can be run with
npm run lint
. The current code is compatible with all of the required browsers so this command generates no output. It would make sense to eventually add this linting step as part of a CI/CD pipeline but, for now, it must be checked manually.