Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kristijorgji/eslint-config-typescript


https://github.com/kristijorgji/eslint-config-typescript

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# @kristijorgji/eslint-config-typescript

Eslint and prettier rules for general purpose typescript projects.
If you want rules specific for React/NextJS or other frameworks have to enrich these rules after including.

## Usage
### Install deps
Install the correct versions of each package, which are listed by the command:
```shell
yarn add --dev @kristijorgji/eslint-config-typescript@latest
```

If you are migrating old service to new plugin first please make sure to first remove old dependencies that are duplicates like example `yarn remove eslint prettier @typescript-eslint/eslint-plugin etc`

### Config
Add the following to your `.eslintrc.js`:
```js
module.exports = {
extends: ['@kristijorgji/eslint-config-typescript'],
};

```

## Develop
More info on how to develop your custom eslint config can be found here: https://eslint.org/docs/developer-guide/shareable-configs

To develop locally you can install with `yarn add --dev pathtolocalfile` example
`yarn add --dev /Users/kristi.jorgji/Desktop/fl-lite/eslint-config-typescript`

You need to run the above command after every plugin change.
## License

[MIT](LICENSE)