Skip to content

A collection of our eslint rules for Node.js and React projects.

Notifications You must be signed in to change notification settings

zauberware/eslint-plugin

Repository files navigation

Shared ESlint/Prettier configuration

Requirements

Install 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 microsoft/vscode-eslint#477.

About

A collection of our eslint rules for Node.js and React projects.

Resources

Stars

Watchers

Forks

Packages

No packages published