ESLint configuration used by many Opencast-related frontend projects. This configuration contains rules for TypeScript and React, so it's only useful for projects using both of those.
Run:
npm install --save-dev @opencast/eslint-config-ts-react
And add this to your ESLint config (e.g. .eslintrc.js
):
{
extends: ["@opencast/eslint-config-ts-react"],
// ...
}
Also make sure you already have eslint
and all other peerDependencies
of this configuration in your package.json
.
Licensed as CC0 1.0.