1.0.0 • Published 3 years ago
@ssh/eslint-config v1.0.0
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-configThen, 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 }}"
}
}