@intoto-dev/eslint-config-intoto
v0.26.6
Published
Sharable eslint-config based on what is used at Intoto
Downloads
257
Maintainers
Readme
eslint-config-intoto
Shared eslint config for Intoto projects using JavaScript / TypeScript. It's based on eslint-config-airbnb
Usage
First install the package including the package's peer dependency to our project:
npx install-peerdeps --dev @intoto-dev/eslint-config-intoto
Then we can use the config in our project by adding the following to our eslint config (most likely in .eslintrc
or package.json
):
{
"extends": ["@intoto-dev/eslint-config-intoto"]
}
React Usage
Does your project contain React? Then you can use the following to add the react plugin to your eslint config:
{
"extends": [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"@intoto-dev/eslint-config-intoto"
]
}