This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c40f22b
commit dfb3928
Showing
1 changed file
with
1 addition
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1 @@ | ||
# @relab/eslint-config | ||
|
||
Shareable configuration for eslint | ||
|
||
## Usage | ||
|
||
1. Install packages `eslint` and `@relab/eslint-config` | ||
```bash | ||
npm install eslint --save-dev | ||
npm install @relab/eslint-config --save-dev | ||
``` | ||
2. Update `package.json` | ||
|
||
**Node project:** | ||
```json | ||
{ | ||
"scripts": { | ||
"lint": "eslint . --ext ts,tsx" | ||
}, | ||
"eslintConfig": { | ||
"extends": "@relab/eslint-config/node" | ||
} | ||
} | ||
``` | ||
|
||
**Next project:** | ||
```json | ||
{ | ||
"scripts": { | ||
"lint": "eslint . --ext ts,tsx" | ||
}, | ||
"eslintConfig": { | ||
"extends": "@relab/eslint-config/next" | ||
} | ||
} | ||
``` | ||
|
||
## Available configurations | ||
|
||
- Node: `@relab/eslint-config/node` | ||
- Next: `@relab/eslint-config/next` | ||
|
||
## License | ||
|
||
Released under [MIT](/LICENSE) by [Sergey Zwezdin](https://github.com/sergeyzwezdin). | ||
Moved to [relab-services/dev-kit](https://github.com/relab-services/dev-kit) monorepo. |