Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leapfe/eslint-config-leap
ESLint Config for TypeScript and React by Leap
https://github.com/leapfe/eslint-config-leap
Last synced: about 2 months ago
JSON representation
ESLint Config for TypeScript and React by Leap
- Host: GitHub
- URL: https://github.com/leapfe/eslint-config-leap
- Owner: LeapFE
- Created: 2020-04-25T12:44:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T15:00:43.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T17:03:41.862Z (9 months ago)
- Language: JavaScript
- Size: 518 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-leapfe
> Leap specific linting rules for ESLint
Our default export contains all of our ESLint rules, including ECMAScript 6+、 React and TypeScript. It requires eslint, @typescript-eslint/parser, eslint-plugin-import, eslint-plugin-react, eslint-plugin-react-hooks, @typescript-eslint/eslint-plugin, eslint-plugin-promise and eslint-config-prettier.
## Installation
using npm 5+, use this shortcut
```shell
npx install-peerdeps --dev eslint-config-leapfe
```Then, add eslint-config-leap to the `extends` array in your .eslintrc.* file.
This rules include typescript rule, so you should specify `parser` and `parserOptions.project` in .eslintrc.* file.```json
{
"parser": "@typescript-eslint/parser",
"extends": [
"leapfe"
],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
```## Rules
all available rules https://github.com/LeapFE/eslint-config-leap/blob/master/rule.json