Skip to content

Releases: MorevM/eslint-config

v40.0.0

25 Aug 17:36

Choose a tag to compare

⚠ BREAKING CHANGES

  • html: With new rule @html-eslint/no-ineffective-attrs ineffective attributes in HTML will raise an error.
  • package-json: With new rules from package-json invalid fields in the package.json will raise an error.
  • javascript: WIth new unicorn/require-module-specifiers rule empty import/export statements will raise an error.
  • javascript: With new unicorn/no-useless-error-capture-stack-trace rule call of Error.captureStackTrace inside constructor of a built-in Error subclass will raise an error.
  • javascript: With new rule unicorn/prefer-class-fields this assignments in class constructors will raise an error.
  • playwright: With new rule playwright/valid-test-tags incorrect Playwright tags will raise an error

Features

  • html: Add @html-eslint/no-ineffective-attrs rule (20e35c4)
  • javascript: Add unicorn/no-useless-error-capture-stack-trace rule (edcc1b8)
  • javascript: Add unicorn/prefer-class-fields rule (20baf20)
  • javascript: Add unicorn/require-module-specifiers rule (8948fe6)
  • javascript: Take account of no-array-reverse rule (39bbbf5)
  • package-json: Add package-json/valid-* rules (f1c8cdc)
  • package-json: Take account of package-json/require-* rules (7ebee17)
  • playwright: Add playwright/no-wait-for-navigation rule (e6435a6)
  • playwright: Add playwright/valid-test-tags rule (ab37226)
  • vitest: Add vitest/warn-todo rule (0dff0a9)

Bug fixes

  • javascript: Allow separate type imports in no-duplicate-imports rule (87956ad)
  • javascript: Remove ForInStatement from no-restricted-syntax rule (1acec65)
  • javascript: Remove doubled @stylistic/func-call-spacing rule (e9bd491)
  • javascript: Take account of import-x/prefer-namespace-import rule (d3543ff)
  • package-json: Ignore empty browserslist entry (5974e05)
  • vitest: Take account of vitest/prefer-called-once and vitest/prefer-called-times rules (8a2e56f)
  • vue: Take account of vue/no-negated-condition and vue/no-negated-v-if-condition rules (ea2955c)

v39.1.0

22 Jun 17:49

Choose a tag to compare

Features

  • html: Add '@html-eslint/no-invalid-entity' rule (21a25d1)
  • html: Add @html-eslint/no-aria-hidden-on-focusable rule (ec2d8c5)
  • html: Add @html-eslint/no-duplicate-in-head rule (c6ced32)
  • html: Add @html-eslint/no-empty-headings rule (6979f70)
  • package-json: Enforce package.json bin files to be in kebab case (1aee227)
  • playwright: Add playwright configuration (407460f)

v39.0.0

14 Jun 13:49

Choose a tag to compare

⚠ BREAKING CHANGES

  • package-json: With new rule package-json/valid-bin some package.json's may produce errors
  • package-json: With new rule package-json/valid-author some package.json's may produce errors

Features

  • package-json: Add package-json/valid-author rule (8c2dfe9)
  • package-json: Add package-json/valid-bin rule (3eeb37e)
  • vitest: Add vitest/consistent-vitest-vi rule (965b10f)

Bug fixes

  • package-json: Remove deprecated package-json/valid-local-dependency rule (572a439)
  • Use optimal RegExp for styling within CLI (9ac5957)
  • vitest: Take account of new no-importing-vitest-globals and prefer-importing-vitest-globals rules (19622f3)

v38.2.0

07 Jun 16:09

Choose a tag to compare

Features

  • jest: Add jest/prefer-ending-with-an-expect rule (9311502)
  • json: Add package-json/require-type rule (013ff9c)
  • node: Take account of n/no-top-level-await rule (633a992)

Bug fixes

  • cypress: Update Cypress globals location (ac7ebd1)
  • javascript: Prevent transformation of www to w{3} within a RegExps (14c72c4)
  • javascript: Remove a custom to-line command as implemented in the package itself (af6d80c)
  • typescript: Get rid of deprecated @typescript-eslint/typedef rule (ae8fe70)

v38.1.1

23 May 11:28

Choose a tag to compare

Bug fixes

  • javascript: Enforce a linebreak after = character in case of multiline expression (129cab8)
  • markdownlint: Extend allowed elements list with img, div and span (cbd0f73)

Chores

  • Replace local no-autofix with shared library (c28d146)

v38.1.0

18 May 17:43

Choose a tag to compare

Features

  • javascript: Add unicorn/consistent-assert rule (844ac7f)
  • javascript: Add unicorn/consistent-date-clone rule (c479e87)
  • javascript: Add unicorn/no-accessor-recursion rule (b4279cf)
  • javascript: Add unicorn/no-named-default rule (c61ac5d)
  • javascript: Add unicorn/no-unnecessary-array-flat-depth rule (b4228ca)
  • javascript: Add unicorn/no-unnecessary-array-splice-count rule (3f6a529)
  • javascript: Add unicorn/prefer-import-meta-properties rule (fc87326)

Refactoring

  • Replace eslint-plugin-no-autofix with a custom realization (601c520)
  • javascript: Replace deprecated unicorn/no-array-push-push with unicorn/prefer-single-call (3e54c7e)
  • javascript: Replace deprecated unicorn/no-instanceof-array with unicorn/no-instanceof-builtins (f56cf54)
  • javascript: Replace deprecated unicorn/no-length-as-slice-end with unicorn/no-unnecessary-slice-end (69b7f94)

Chores

  • Bump eslint-plugin-unicorn from 56.0.1 to 59.0.1 (ab0d88d)

v38.0.0

18 May 10:30

Choose a tag to compare

⚠ BREAKING CHANGES

  • Since many modules are moving towards to ESM-only format, the minimum Node version is set to 22 to be able to require`` these modules in eslint-plugin-no-autofix`.
  • Minimal supported ESLint version is 9.27.0
  • package-json: With new rule package-json/require-engines package.json files without engines property will throw an error
  • html: New rule @html-eslint/no-duplicate-class will report on duplicated class names in HTML markup
  • cypress: With new rule cypress/no-chained-get cypress configuration become more strict and may produce new errors
  • vue2: Vue2 components that have comments in the template root now will produce errors
  • vue: With new rule vue/no-import-compiler-macros vue files may produce some new errors
  • typescript: With new rule @typescript-eslint/no-unnecessary-type-conversion TypeScript-related configurations become more strict.
  • javascript: With new rule no-unassigned-vars JS-related configurations become more strict

Features

  • cypress: Add cypress/no-chained-get rule (75f9d9c)
  • cypress: Add cypress/no-xpath rule (9f3b286)
  • html: Add @html-eslint/no-duplicate-class rule (0e13d8c)
  • html: Enable @html-eslint/attrs-newline again as I fixed the behavior :) (1f20a01)
  • html: Take account of @html-eslint/use-baseline rule (8b27c10)
  • javascript: Add no-unassigned-vars rule (6fc479d)
  • javascript: Add fallback alphabetical sorting option inperfectionist/sort-imports rule (0e23e76)
  • node: Enable n/no-extraneous-import rule again (f9acbdc)
  • package-json: Add package-json/require-engines rule (79c66c5)
  • package-json: Take account of package-json/require-description rule (d72ecf2)
  • package-json: Take account of package-json/require-types rule (65f3097)
  • package-json: Take account of package-json/restrict-dependency-ranges rule (0758fac)
  • typescript: Add @typescript-eslint/no-unnecessary-type-conversion rule (f9791ee)
  • vitest: Add vitest/prefer-describe-function-title rule (edda58d)
  • vue2: Disallow comments in Vue2 template root for better migration to v3 (7d67cb5)
  • vue: Add vue/no-implicit-coercion extension rule (3e92adb)
  • vue: Add vue/no-import-compiler-macros rule (12239ed)
  • vue: Set compilerOptions field to vue/order-in-components rule (6d22060)
  • vue: Set slots and expose fields to vue/order-in-components rule (32a8cbf)
  • vue: Take account of vue/define-props-destructuring rule (867dd2f)
  • yaml: Add alignMultilineFlowScalars option to yml/indent rule (da59e0c)

Refactoring

  • javascript: Migrate to new syntax in perfectionist/sort-imports customGroups (a5fede5)

Bug fixes

  • vitest: Allow arguments in vitest/valid-title (a30e578)

Tests

  • Let vue2-only rules marked as deprecated be in the list for a while (c0eaf72)

v37.0.0

19 Mar 13:23

Choose a tag to compare

⚠ BREAKING CHANGES

  • typescript: With new rule @typescript-eslint/no-misused-spread Typescript configuration becomes more strict and may produce new errors.
  • html: With new rule @html-eslint/require-input-label HTML-related configurations become more strict and may produce new errors.
  • html: With new rule @html-eslint/prefer-https HTML-related configurations become more strict and may produce new errors.
  • html: With new rule @html-eslint/require-form-method HTML-related configurations become more strict and may produce new errors.
  • html: With new rule @html-eslint/no-nested-interactive HTML-related configurations become more strict and may produce new errors.
  • html: With new rule @html-eslint/no-invalid-role HTML-related configurations become more strict and may produce new errors.
  • html: With new rule @html-eslint/no-heading-inside-button HTML-related configurations become more strict and may produce new errors.

Features

  • html: Add @html-eslint/no-heading-inside-button rule (d4829c2)
  • html: Add @html-eslint/no-invalid-role rule (4dc6639)
  • html: Add @html-eslint/no-nested-interactive rule (dd61660)
  • html: Add @html-eslint/prefer-https rule (e52077e)
  • html: Add @html-eslint/require-form-method rule (87e7cd2)
  • html: Add @html-eslint/require-input-label rule (06a56df)
  • html: Take account of @html-eslint/max-element-depth rule (4a93e63)
  • html: Take account of @html-eslint/require-explicit-size rule (f3489bb)
  • javascript: Increase the number of banned abbreviations (576b79d)
  • json: Add package-json/no-empty-fields rule (fca4a21)
  • json: Add some of package-json/require-* rules (27ed71c)
  • json: Take account of package-json/no-redundant-files rule (c29c17a)
  • typescript: Add @typescript-eslint/no-misused-spread rule (cc0acc4)
  • vitest: Take account of vitest/prefer-strict-boolean-matchers rule (b4705f0)
  • vitest: Take account of vitest/require-mock-type-parameters rule (c3da3b3)

Bug fixes

  • html: Temporarily disable @html-eslint/attrs-newline rule due to its overly strict implementation (0ad583d)
  • json: Replace deprecated package-json/valid-package-def with package-json/valid-package-definition (a1a3923)

v36.3.2

28 Dec 11:17

Choose a tag to compare

No notable changes in this release, just dependencies update.

v36.3.1

16 Dec 16:01

Choose a tag to compare

Bug fixes

  • javascript: Disable no-useless-assignment rule (1d08c77)
  • typescript: Correct extraFileExtensions paths within TS config (7f03e51)