0.1.5 • Published 5 years ago
eslint-config-sanjagh v0.1.5
eslint-config-sanjagh
This is the shareable ESLint config that we use at sanjagh for our javascript projects
Installation
run npm info eslint-config-sanjagh peerDependencies
to list peer dependencies and then install each dependency with your desired package manager
# npm
npm install --save-dev <dependency>@<version>
# yarn
yarn add --dev <dependency>@<version>
Install the config itself
# npm
npm install --save-dev eslint-config-sanjagh
# yarn
yarn add --dev eslint-config-sanjagh
Note: if you're using npm >= 5 you can use this command
npx install-peerdeps --dev eslint-config-sanjagh
Usage
Once you have done with installation add sanjagh
to extends
part of your ESLint configuration
JSON .eslintrc.json
:
{
"extends": "sanjagh"
}
YAML .eslintrc.yml
:
extends:
- sanjagh
Js: .eslintrc.js
:
module.exports = {
extends: 'sanjagh',
};
License
MIT © Sanjagh