npm i @caspeco/eslint-config
The provided configuration contains shared ESLint rules for typescript projects across Caspeco. To use this configuration you'll need .eslintrc.js
file in your project root with the following content:
// .eslintrc.js
+ module.exports = {
+ extends: "@caspeco",
+ };
Uses the rules defined in frontend-vanilla.js.
// .eslintrc.js
+ module.exports = {
+ extends: "@caspeco/eslint-config/frontend-vanilla",
+ };
Uses the rules defined in frontend-react.js. It's also combined with the rules from frontend-vanilla.js.
// .eslintrc.js
+ module.exports = {
+ extends: "@caspeco/eslint-config/frontend-react",
+ };
- Create a PAT (Classic) on Github with the scope "Packages: Read".
- Set an environment variable locally named
GPR_PRIVATE_READ_TOKEN
to the PAT created - Run
npm install
npm install
npm run test
Based on the work of Chainsafe: eslint-config