eslint-config-jeandek
v1.0.0
Published
jeandek's Eslint and Prettier config
Downloads
2
Maintainers
Readme
eslint-config-jeandek
Personal Eslint and Prettier config
Installation
This package is hosted on npm and should be installed as a development dependency using your package manager of choice.
// npm
npm install --save-dev eslint-config-jeandek
The package relies on peer dependencies that vary based on the configuration that you are using, but eslint
is always a must.
Usage
To use the config, add it to the extends
section of your .eslintrc.js file.
module.exports = {
extends: ['jeandek'],
};
The package contains other configs for specific uses which can be combined with the base config.
module.exports = {
extends: ['jeandek', 'jeandek/<config_name>'],
};
Editor setup
VS Code
- Install the ESLint extension.
- Open VS Code's settings (Ctrl+Shift+P -> Preferences: Open Settings (UI)) and look for Editor: Code Actions On Save. It will prompt you to open the JSON settings file. Add the following to tell VS Code to run ESLint when saving a file.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},