Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidborzek/eslint-config
A eslint config for my typescript projects
https://github.com/davidborzek/eslint-config
coding eslint eslint-config rules style typescript
Last synced: 26 days ago
JSON representation
A eslint config for my typescript projects
- Host: GitHub
- URL: https://github.com/davidborzek/eslint-config
- Owner: davidborzek
- License: mit
- Created: 2021-11-22T18:21:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T02:40:50.000Z (almost 2 years ago)
- Last Synced: 2024-09-19T13:21:27.178Z (about 2 months ago)
- Topics: coding, eslint, eslint-config, rules, style, typescript
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config
A eslint config for my typescript projects.
## Setup
### 1) Install
```bash
yarn add -D @davidborzek/eslint-config
```### 2) Configure
You have to options to include the config in your projects.
1. Add the config to a `.eslintrc.js`
```js
module.exports = {
extends: "@davidborzek",
rules: {},
};
```> You can also add additional rules.
2. Add it to the `package.json` of your project
```json
{
"eslintConfig": {
"extends": "@davidborzek"
}
}
```### 3) Linting scripts (optional)
For lint fix and check scripts you can add the following lines to your `package.json` scripts:
```json
{
"scripts": {
"lint": "eslint 'src/**/*.ts'",
"lint-tests": "eslint 'test/**/*.ts'"
}
}
```