eslint-config 0.0.1
Install from the command line:
Learn more about npm packages
$ npm install @swan-bitcoin/eslint-config@0.0.1
Install via package.json:
"@swan-bitcoin/eslint-config": "0.0.1"
About this version
This package includes a shareable ESLint config for Swan projects.
First, install this package along with ESLint in your project. This package requires at least version 8.1 of ESLint
npm install -D eslint @swan-bitcoin/eslint-config
Then create a file named .eslintrc
in the root of your project:
{
"extends": "@swan-bitcoin/eslint-config"
}
Optionally, for node only environments that do not require React you can extend @swan-bitcoin/eslint-config/node
This packages also ships with optional configuration options for projects that use Jest with Testing Library. To enable these rules, add the following to your .eslintrc
:
{
"extends": [
"@swan-bitcoin/eslint-config",
"@swan-bitcoin/eslint-config/jest-testing-library"
]
}
Please note that because this ruleset is optional, we do not include the core libraries as peer dependencies for this package. If you use these rules, be sure that you have the following dependencies installed in your project:
{
"@testing-library/jest-dom": ">=5.16.0",
"@testing-library/react": ">=12.0.0",
"jest": ">=26.0.0"
}
Optionally, for node only environments that do not require React you can extend @swan-bitcoin/eslint-config/jest
Details
- eslint-config
- swan-bitcoin
- about 2 years ago
- MIT
- 27 dependencies
Assets
- eslint-config-0.0.1.tgz
Download activity
- Total downloads 1,389
- Last 30 days 0
- Last week 0
- Today 0