Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 802 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 802 Bytes

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.