This is the shareable ESLint config that we use at sanjagh for our javascript projects
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-sanjaghNote: if you're using npm >= 5 you can use this command
npx install-peerdeps --dev eslint-config-sanjaghOnce you have done with installation add sanjagh to extends part of your ESLint configuration
JSON .eslintrc.json:
{
"extends": "sanjagh"
}YAML .eslintrc.yml:
extends:
- sanjaghJs: .eslintrc.js:
module.exports = {
extends: 'sanjagh',
};MIT © Sanjagh