@ssh/eslint-config
v1.0.0
Published
Slingshot's ESLint rules for JS, TS, and React
Downloads
69
Readme
eslint-config-slingshot
Slingshot's ESLint rules. Based on Airbnb's ESLint rules.
The easiest way to install this package is through npx install-peerdeps
, which will install all the peer dependencies
for you using your preferred package manager.
npx install-peerdeps --dev @ssh/eslint-config
Then, add the configuration to your .eslintrc.json
and set parserOptions.project
:
{
"extends": "@ssh",
"parserOptions": {
"project": "{{ path to your tsconfig.json }}"
}
}
If you don't need React-specific rules, you can use the base
configuration instead:
{
"extends": "@ssh/eslint-config/base",
"parserOptions": {
"project": "{{ path to your tsconfig.json }}"
}
}