Skip to content

slingshot/eslint-config-slingshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }}"
    }
}