/jm-eslint-config-base

A base, framework-agnostic, [ESLint](http://eslint.org/) config that enforces best practices and prevents possible problems.

Primary LanguageJavaScriptMIT LicenseMIT

@jm/eslint-config-base

A base, framework-agnostic, ESLint config that enforces best practices and prevents possible problems.

The idea is to use prettier for styling and does not include rules that are conflicting with prettier.

Available configs

  • base, The, default, base configuration that does not include any rules with regard to styling
  • formatting, Extention to the base config that does include styling rules but only those that are not covered by prettier.
  • base-relaxed, Base configuration with some relaxed rules. Better suitable for personal or small projects.
  • formatting-relaxed, Extention to the base-relaxed configuration.

Installation

# inside your project's working tree
npm install @jm/eslint-config-base --save-dev

Usage

Example .eslintrc.json with only the base config

{
  "extends": ["@jm/base"]
}

Example .eslintrc.json with base config extended with formatting rules

{
  "extends": ["@jm/base", "@jm/eslint-config-base/formatting"]
}