eslint-config 0.1.2
Install from the command line:
Learn more about npm packages
$ npm install @shabados/eslint-config@0.1.2
Install via package.json:
"@shabados/eslint-config": "0.1.2"
About this version
This repo contains the Shabad OS ESLint config!
npm install --save-dev @shabados/eslint-config
Recommended to use npm 7+ to automatically install the peer-dependencies. If not, be sure to install them yourself via npx install-peerdeps --dev @shabados/eslint-config
.
Create an ESLint configuration (.eslintrc
) in your repository. You'll then add the appropriate flavor to the extends
property inside the configuration file.
Essentially, there are 2 flavors of configuration that can be referenced:
@shabados
@shabados/typescript
@shabados/react
So, if you've got a TypeScript project, the contents of your .eslintrc
should contain:
{
"extends": [
"@shabados",
"@shabados/typescript",
]
}
The @shabados
flavor is always required, so have this at a minimum.