https://github.com/zauberware/eslint-plugin
A collection of our eslint rules for Node.js and React projects.
https://github.com/zauberware/eslint-plugin
Last synced: 3 months ago
JSON representation
A collection of our eslint rules for Node.js and React projects.
- Host: GitHub
- URL: https://github.com/zauberware/eslint-plugin
- Owner: zauberware
- Created: 2020-05-14T16:29:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T15:35:49.000Z (about 2 years ago)
- Last Synced: 2025-10-02T01:42:35.712Z (8 months ago)
- Language: JavaScript
- Size: 1.18 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shared ESlint/Prettier configuration
## Requirements
Install [Prettier VSCode](https://github.com/prettier/prettier-vscode).
## Prettier
Put this into your package.json
```
"prettier": "@zauberware/eslint-config/.prettierrc.json",
```
## Install
```
npm i @zauberware/eslint-config eslint
```
## React
Create .eslintrc.js
```
module.exports = {
extends: '@zauberware/eslint-config/react',
};
```
Create .eslintrc.js
```
module.exports = {
extends: '@zauberware/eslint-config/react-ts',
};
```
## Node
Create .eslintrc.js
```
module.exports = {
extends: '@zauberware/eslint-config/node',
};
```
## Troubleshooting
You always have to quit VSCode if you change eslint rules, otherwise they don't apply immediately.
See https://github.com/microsoft/vscode-eslint/issues/477.