Skip to content

Releases: cloudfour/eslint-config

v24.0.0

14 Nov 17:36
Compare
Choose a tag to compare

Breaking Changes

  • Changed from a "super plugin" to a flat config file
  • Changed package name from @cloudfour/eslint-plugin to @cloudfour/eslint-config

Major Changes

  • Update eslint-plugin-jsdoc from v46 to v50
  • Update eslint-plugin-n from v16 to v17
  • Update eslint-plugin-promise from v6 to v7
  • Update eslint-plugin-unicorn from v48 to v56
  • Update typescript-eslint from v6 to v8

v23.0.0

22 Aug 18:21
ab31b70
Compare
Choose a tag to compare

Major Changes

Minor Changes

  • #551 f11e794 Thanks @calebeby! - Re-export disable-type-checked config from @typescript-eslint/eslint-plugin

v22.0.0

30 May 23:49
903395b
Compare
Choose a tag to compare

Major Changes

v21.1.0

05 Jul 16:07
2db6a3c
Compare
Choose a tag to compare

Minor Changes

  • #396 eaa4ea8 Thanks @Paul-Hebert! - Revert changes to no-use-before-define rule since it was more heavy-handed than expected.

v21.0.0

30 Jun 18:16
8598d7d
Compare
Choose a tag to compare

Major Changes

v20.0.2

16 Jun 15:33
abac73d
Compare
Choose a tag to compare

Patch Changes

v20.0.1

14 Jun 16:26
92f6f2d
Compare
Choose a tag to compare

Patch Changes

  • 46db2ec Thanks @calebeby! - Pin eslint-plugin-n to 15.2.1

    15.2.2 has a regression and inserts the wrong file extensions.

v20.0.0

14 Jun 15:19
90ca830
Compare
Choose a tag to compare

Major Changes

  • #380 80af81b Thanks @calebeby! - Enabled @cloudfour/n/file-extension-in-import.

    require('./foo') → ✅ require('./foo.js')
    import * as foo from './foo' → ✅ import * as foo from './foo.js'

    If the file that you are importing is a .ts file, you must import it as .js, because of a decision that the TypeScript team made.

    It is auto-fixable.

  • #378 4545d67 Thanks @calebeby! - Enforce using the node: protocol for imports to node built-in modules (prefer-node-protocol).

    require('fs') → ✅ require('node:fs')
    import * as fs from 'fs' → ✅ import * as fs from 'node:fs'

    The import form is supported in node v14.13.1+.
    The require form is supported in node v14.18.0+.

    It is auto-fixable.

  • #381 bee6a36 Thanks @calebeby! - Sort imports

    Newly Enabled Rules

    These rules sort imports into separate categories, with empty lines between the categories, and with the imports within a category sorted alphabetically. The variable bindings within an import statement are also sorted alphabetically.

    These rules are auto-fixable, however in some cases manual sorting may be needed. Occasionally, the auto-fix will detach comments from the import statements they refer to.

v19.0.0

24 May 19:13
d97a0ac
Compare
Choose a tag to compare

Major Changes

v18.0.1

31 Mar 22:47
236413c
Compare
Choose a tag to compare

Patch Changes