1.0.0 • Published 1 year ago

eslint-config-jeandek v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  1. Install the ESLint extension.
  2. 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
},