eslint-config 0.0.9
Install from the command line:
Learn more about npm packages
$ npm install @tree-company/eslint-config@0.0.9
Install via package.json:
"@tree-company/eslint-config": "0.0.9"
About this version
Create an .npmrc
file in your project containing the following:
//npm.pkg.github.com/:_authToken=YOUR_PERSONAL_TOKEN
@tree-company:registry=https://npm.pkg.github.com
always-auth=true
Replace YOUR_PERSONAL_TOKEN with a personal access token from github. This token only needs the read:packages
permission.
Install using yarn add -D @tree-company/eslint-config eslint prettier
.
You can add our base eslint config in the following way:
// eslintrc.js
module.exports = {
extends: ["@tree-company/eslint-config"],
};
If you work with next.js & typescript:
// eslintrc.js
module.exports = {
extends: ["@tree-company/eslint-config/next-ts"],
};