Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryanberger98/eslint-config-bryanberger
My personal eslint config
https://github.com/bryanberger98/eslint-config-bryanberger
eslint eslint-config eslintrc javascript react typescript
Last synced: 27 days ago
JSON representation
My personal eslint config
- Host: GitHub
- URL: https://github.com/bryanberger98/eslint-config-bryanberger
- Owner: BryanBerger98
- License: mit
- Created: 2024-03-28T17:43:57.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T11:01:24.000Z (about 2 months ago)
- Last Synced: 2024-10-11T17:24:06.029Z (27 days ago)
- Topics: eslint, eslint-config, eslintrc, javascript, react, typescript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-config-bryanberger
- Size: 145 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eslint-config-bryanberger
This package provides my personal .eslintrc as an extensible shared config.
## Usage
I export five ESLint configurations for your usage.
### eslint-config-bryanberger
My default export contains most of my ESLint rules, including ECMAScript 6+, TypeScript and React. It requires `eslint`, `eslint-plugin-import`, `@stylistic/eslint-plugin`, `@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`, `eslint-import-resolver-typescript`, `eslint-plugin-react`, `eslint-plugin-react-hooks`, and `eslint-plugin-jsx-a11y`.
#### Install the correct versions of each package
```sh
npx install-peerdeps --dev eslint-config-bryanberger
```or
```sh
npm i -D eslint eslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y @stylistic/eslint-plugin
```or with pnpm:
```sh
pnpm add -D eslint eslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y @stylistic/eslint-plugin
```#### Extends config
Add `"extends": "bryanberger"` to your `.eslintrc` to extend the entire configuration.
If you only want to extend one of my configurations, your can only add `"extends": "bryanberger/$CONFIG_NAME"` to your `.estlinrc`. Here is the configurations list:
* `bryanberger/javascript`
* `bryanberger/typescript`
* `bryanberger/imports`
* `bryanberger/react`You can extend multiple selected configs with the following syntax:
```json
{
"extends": [
"bryanberger/javascript",
"bryanberger/react"
]
}
```