-
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
60685fe
commit a94c60f
Showing
3 changed files
with
33 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# @fastone/eslint-config | ||
|
||
[![npm version](https://badge.fury.io/js/%40fastone%2Feslint-config.svg)](https://badge.fury.io/js/%40fastone%2Feslint-config) | ||
[![npm downloads](https://img.shields.io/npm/dm/%40fastone%2Feslint-config.svg)](https://www.npmjs.com/package/%40fastone%2Feslint-config) | ||
[![GitHub stars](https://img.shields.io/github/stars/fastone/eslint-config.svg?style=social&label=Star&maxAge=2592000)](https://github.com/fastone/eslint-config) | ||
|
||
## Description | ||
This is a sharable eslint config for TypeScript React projects. | ||
One config to rule all them projects. | ||
|
||
## Installation | ||
`npm install https://github.com/fastone/eslint-config.git` | ||
|
||
## Usage | ||
Create `.eslintrc.cjs` in the root of your project with the following content: | ||
|
||
``` | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: ['@fastone/eslint-config'], | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}; | ||
``` | ||
|
||
## To Do | ||
|
||
- [ ] Make this a public package on npm `npm install @fastone/eslint-config` | ||
- [ ] Double check and update the rules while using it in a real project |
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
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