0.1.26 • Published 21 days ago

@zauberware/eslint-config v0.1.26

Weekly downloads
1
License
MIT
Repository
github
Last release
21 days ago

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 https://github.com/microsoft/vscode-eslint/issues/477.