Skip to content

Commit 90ca830

Browse files
Publish Next Version (#379)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3bd86dc commit 90ca830

File tree

5 files changed

+35
-40
lines changed

5 files changed

+35
-40
lines changed

.changeset/four-cooks-bow.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.changeset/long-olives-give.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/ten-pets-pay.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# @cloudfour/eslint-plugin
22

3+
## 20.0.0
4+
5+
### Major Changes
6+
7+
- [#380](https://github.com/cloudfour/eslint-config/pull/380) [`80af81b`](https://github.com/cloudfour/eslint-config/commit/80af81bda55143f4c40c52f2103a1690229e0084) Thanks [@calebeby](https://github.com/calebeby)! - Enabled [`@cloudfour/n/file-extension-in-import`](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/file-extension-in-import.md).
8+
9+
`require('./foo')` → ✅ `require('./foo.js')`
10+
`import * as foo from './foo'` → ✅ `import * as foo from './foo.js'`
11+
12+
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](https://github.com/microsoft/TypeScript/issues/16577#issuecomment-754941937).
13+
14+
It is auto-fixable.
15+
16+
* [#378](https://github.com/cloudfour/eslint-config/pull/378) [`4545d67`](https://github.com/cloudfour/eslint-config/commit/4545d67018c322d2bd9581b35ce774f0ab0b69db) Thanks [@calebeby](https://github.com/calebeby)! - Enforce using the `node:` protocol for imports to node built-in modules ([`prefer-node-protocol`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/rules/prefer-node-protocol.js)).
17+
18+
`require('fs')` → ✅ `require('node:fs')`
19+
`import * as fs from 'fs'` → ✅ `import * as fs from 'node:fs'`
20+
21+
The `import` form is supported in node v14.13.1+.
22+
The `require` form is supported in node v14.18.0+.
23+
24+
It is auto-fixable.
25+
26+
- [#381](https://github.com/cloudfour/eslint-config/pull/381) [`bee6a36`](https://github.com/cloudfour/eslint-config/commit/bee6a3641b55d1a78e90208c5b6c7201f46fa92f) Thanks [@calebeby](https://github.com/calebeby)! - Sort imports
27+
28+
**Newly Enabled Rules**
29+
30+
- [`@cloudfour/import/order`](https://github.com/import-js/eslint-plugin-import/blob/v2.25.4/docs/rules/order.md)
31+
- [`sort-imports`](https://eslint.org/docs/rules/sort-imports)
32+
33+
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.
34+
35+
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.
36+
337
## 19.0.0
438

539
### Major Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudfour/eslint-plugin",
3-
"version": "19.0.0",
3+
"version": "20.0.0",
44
"description": "Cloud Four's shareable ESLint configuration",
55
"author": "Cloud Four <[email protected]> (http://cloudfour.com)",
66
"homepage": "https://github.com/cloudfour/eslint-config",

0 commit comments

Comments
 (0)