README
Linting
unified ESlint and editorconfig settings
npm install eslint-config-bedly
Usage
- Inside your .eslintrc.js
module.exports = {
"extends": [ "bedly" ]
};
- Copy .editorconfig
cp ./node_modules/eslint-config-bedly/.editorconfig ./
- Copy VScode settings to your workspace
cp -R ./node_modules/eslint-config-bedly/.vscode ./
Vscode plugin for prettier
ext install prettier-vscode
add this to your Vscode settings.json
"prettier.eslintIntegration":true
Vscode Editorconfig plugin
ext install EditorConfig
Format files using prettier
you may add this to your Vscode settings.json
"editor.formatOnSave":true
Press ⇧ + ⌥ + F on Mac