Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-medikoo

medikoo1.1kISC5.1.0

ESLint config for medikoo's projects

eslint-config, eslint

readme

eslint-config-medikoo

ESLint shareable config used in my projets

At current stage it experimentally derives from eslint:all.

Installation

$ npm install --save-dev eslint eslint-config-medikoo

Configuration

Add eslintConfig to package.json:

Following expresses configuration variant for environment agnostic ES2022+ projects:

    "eslintConfig": {
        "extends": "medikoo",
        "root": true
    }

For more specific needs, use other config variants:

  • medikoo/es5 - environment agnostic ES5+ projects
  • medikoo/es3 - environment agnostic ES3+ projects
  • medikoo/node - Node.js v10+ projects
  • medikoo/node/16 - Node.js v16+ projects
  • medikoo/node/14 - Node.js v14+ projects
  • medikoo/node/12 - Node.js v12+ projects
  • medikoo/node/8 - Node.js v8+ projects
  • medikoo/node/6 - Node.js v6+ projects
  • medikoo/node/es5 - Node.js ES5+ projects

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

5.1.0 (2024-09-05)

Features

  • Bump max-lines to 170 (it fits 4K screen with a margin) (289f7fe)

5.0.0 (2024-08-06)

⚠ BREAKING CHANGES

  • Default configuration now expects Node.js v18+ projects

Maintenance Improvements

  • Switch default to Node.js v18+ (06318b3)

4.2.0 (2023-05-10)

Features

  • Disable rule created for ES2021+ environments (0d0b8c7)
  • Do not recognize fetch global in Node.js env (7e07745)

Bug Fixes

  • Do not enforce exponentional operator in ES5 environments (5724d26)

4.1.2 (2022-03-07)

Bug Fixes

  • Do not enforce exponentional operator in ES5 environments (5724d26)

Maintenance Improvements

  • Configure .npmignore (91db47f)
  • Ensure to not publish commitlint.config.js (221e04b)
  • Fix lint & prettier scripts (66ea331)

4.1.1 (2021-10-15)

Bug Fixes

  • Turn off prefer-named-capture-group for ES5 environments (b05c872)

4.1.0 (2021-07-19)

Features

  • Introduce Node.js v14 settings (0bb0a4a)

4.0.0 (2020-11-19)

⚠ BREAKING CHANGES

  • In default configuration drop support for non compliant ES2019 engines (Node.js versions below v10)

Features

  • Increase max lines to 115 (073dea3)
  • Upgrade engines support (f1f911f)

3.1.0 (2020-07-22)

Features

  • Node.js v6 dedicated config (57492d6)
  • Turn off "block-scoped-var" rule (ff32250)

3.0.1 (2020-03-05)

Bug Fixes

  • Do not require named capture groups due to no support in FF (46eef87)

3.0.0 (2020-02-28)

⚠ BREAKING CHANGES

  • Drop support for non compliant ES2018 engines

Features

2.7.0 (2019-11-07)

Features

  • Turn off require-await rule (6cda3b8)

2.6.0 (2019-10-09)

Features

  • Configure NodeJS (old versions) ES5 config (fc4fc15)
  • Turn off 'complexity' rule (ad30837)

2.5.1 (2019-08-19)

Bug Fixes

  • Turn off newly introduced function-call-argument-newline (9c55689)

2.5.0 (2019-08-06)

Features

2.4.0 (2019-06-18)

Features

  • Node.js dedicated configuration (20b6ef5)

2.3.0 (2019-06-14)

Features

  • Integrate ES5 configuration (17fa696)

2.2.0 (2019-04-30)

Features

2.1.1 (2019-03-05)

Bug Fixes

  • turn off ES2018 related rule (bece3e0)

2.1.0 (2019-02-01)

Features

  • turn off max-statements (6883264)
  • turn off wrap-iife rule, to avoid collision with prettier (357139a)

2.0.0 (2018-12-28)

Features

  • do not allow more than 100 lines per module (5dcb3b4)

BREAKING CHANGES

  • New experimental approach to maintainance. Do not allow modules code extend regular screen height

1.44.0 (2018-11-06)

Features

  • turn off max-statements-per-line (583bd50)

1.43.0 (2018-09-20)

Features

  • turn of "max-statements" rule for tests (ddb5849)

1.42.0 (2018-09-14)

Features

  • turn off no-extra-parens. So it doesn't collide with prettier (311d78b)

1.41.0 (2018-08-16)

Features

  • turn off no-shadow for tests (1fa4b54)

1.40.0 (2018-08-08)

Features

  • turn off function-paren-newline (bf79e1b)

1.39.0 (2018-08-06)

Bug Fixes

  • move test only var name allowance to test specific conf (1a63a0a)

Features

  • allow 'global' override (d67b709)

1.38.0 (2018-08-03)

Features

  • turn off wrap-regex rule (0424839)

1.37.0 (2018-08-02)

Bug Fixes

Features

  • do not force ES2018 yet (1468303)

1.36.0 (2018-08-02)

Features

1.35.0 (2018-05-29)

Features

  • turn off comments capitalization (41eaeea)

1.34.0 (2018-05-11)

Features

  • ignore long urls in max-len check (f97dd75)
  • reduce style rules (a435b48)

1.33.0 (2018-03-29)

Features

  • turn off array-bracket-newline (ea4e3ff)

1.32.0 (2018-03-19)

Features

  • turn off no-control-regex (90fa8ea)

1.31.0 (2017-12-13)

Features

  • turn off "callback-return" (45f95ed)

1.30.0 (2017-11-29)

Features

  • turn off implicit-arrow-linebreak rule (b89df24)

1.29.0 (2017-11-02)

Features

  • add "_" i18n method name to accepted ids (40dbc25)

1.28.0 (2017-10-25)

Features

  • do not require capitalization of inline comments (fb21b78)

1.27.0 (2017-10-19)

Features

  • do not force lines between class members (c660086)

1.26.1 (2017-10-17)

Bug Fixes

  • turn off multiline-comment-style rule (0389ee4)

1.26.0 (2017-10-16)

Features

  • do not require this in class methods (882d2d0)

1.25.0 (2017-09-06)

Features

  • configure space-before-function-paren (b269d12)

1.24.1 (2017-09-04)

Bug Fixes

  • introduce configuration for function-paren-newline (e7e1a53)

1.24.0 (2017-08-28)

Features

  • turn off consistent-this rule (5be9cde)

1.23.0 (2017-07-10)

Features

  • allow "Context" as this variable (811c519)
  • do not punish parens around cond assign (2df9f11)
  • fine tune no-mixed-operators (e49a2f8)
  • turn off accessor-pairs rule (a122f01)
  • turn off guard-for-in (0357a87)
  • turn off no-labels rule (b4659c8)

1.22.0 (2017-07-10)

Features

1.21.0 (2017-06-16)

Features

  • allow controlled unused args (b7bb8a9)
  • fine tune an alias name for this (8bc4b0e)

1.20.0 (2017-06-16)

Features

  • turn off array-element-newline rule (d2f5fad)

1.19.0 (2017-06-16)

Features

  • turn off 'indent' rule (handled by Prettier) (68e791a)

1.18.0 (2017-06-01)

Features

  • add "t" to var names that can be shadowed (b169a23)

1.17.0 (2017-06-01)

Features

  • turn off no-magic-numbers (ca13ab9)

1.16.0 (2017-05-25)

Features

  • turn off no-confusing-arrow rule (652cb85)

1.15.0 (2017-05-17)

Features

  • turn off "newline-per-chained-call" rule (90f812f)

1.14.0 (2017-05-16)

Features

  • turn off 'func-name-matching' rule (f69acef)

1.13.0 (2017-05-11)

Features

  • change setting for "arrow-parens" to "as-needed" (ae807e4)

1.12.0 (2017-05-11)

Features

  • turn off 'object-curly-newline' rule (f2997b4)

1.11.0 (2017-05-10)

Features

  • indent case clauses within switch (dd1c4a2)

1.10.0 (2017-05-08)

Features

  • disable "no-continue" rule (c339c65)

1.9.0 (2017-05-08)

Features

  • add i to accepted identifiers (2223d9f)

1.8.0 (2017-05-08)

Features

1.7.0 (2017-05-08)

Features

  • add 'a' and 'T' to allowed var names (82ffbfc)

1.6.0 (2017-05-08)

Features

  • disable no-undefined rule (9805466)

1.5.0 (2017-05-08)

Features

  • disable no-invalid-this rule (eb8d29e)

1.4.0 (2017-05-02)

Features

  • add "d" to acceptable var names (505b470)

1.3.0 (2017-04-14)

Features

1.2.0 (2017-04-14)

Features

  • turn off no-process-exit rule (d0c8b48)

1.1.0 (2017-04-13)

Features

  • add 2 to ignored magic numbers (e281db9)

1.0.0 (2017-04-12)

Initial version