https://github.com/darkroomengineering/eslint-config-base-react
https://github.com/darkroomengineering/eslint-config-base-react
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/darkroomengineering/eslint-config-base-react
- Owner: darkroomengineering
- Created: 2020-12-15T22:45:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:02:50.000Z (almost 3 years ago)
- Last Synced: 2025-10-04T09:41:49.176Z (9 months ago)
- Language: JavaScript
- Size: 11.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @studio-freight/eslint-config-base-react
This package includes the shareable ESLint configuration used by [Studio Freight](https://github.com/studio-freight) on React/Next.js based websites.
## Usage
Install this package:
`npm install --save-dev @studio-freight/eslint-config-base-react`
or
`yarn add --dev @studio-freight/eslint-config-base-react`
Then create a file named `.eslintrc` with following contents in the root folder of your project:
```js
{
"extends": "@studio-freight/eslint-config-base-react"
}
```
you're gucci.
## Includes
### [ESLINT Standard React](https://github.com/standard/eslint-config-standard-react)
### Prettier settings:
```js
{
useTabs: false,
tabWidth: 2,
printWidth: 80,
singleQuote: false,
trailingComma: "none",
jsxBracketSameLine: false,
semi: false
}
```
make sure you have the following setting enabled in VSCode:
```js
"editor.codeActionsOnSave": {
"source.fixAll": true
}
```
since prettier is already included here, you don't need to run any prettifying tools on your end, eslint already does that for you, you're welcome!