This ESLint Ruleset integrates all Javascript & Typescript related RDSS coding standard rules and can be used to run eslint on save, commit or manually.
To enable this config and ruleset in your project do the following:
- Run
npm install "https://github.com/ZooRoyal/rdss-eslint-config#main" --save-dev
to install the config as a npm dependency. - Create a
.eslintrc.js
in your project root. - Extend the created ESLint config with this config in the extend block:
extends: ['@rdss/eslint-config']
A minimal example of a working .eslintrc.js
can look like the following:
/**
* Eslint config.
*/
module.exports = {
extends: ['@rdss/eslint-config'],
};
To let run ESLint with this coding standard config applied you can use several ways. Please refer the documentation of eslint.
A common approach to check the code anyway is using npx
:
npx eslint