Skip to content

Commit 584be43

Browse files
authored
docs: update Node.js version requirement in README (#39)
1 parent 6e46bf6 commit 584be43

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ESLint Transforms
22

33
A collection of jscodeshift transforms to help upgrade ESLint rules to new versions of [ESLint](https://github.com/eslint/eslint).
4-
Supports [Node.js](https://nodejs.org) version 4 or above.
4+
Supports [Node.js](https://nodejs.org) version 20 or above.
55

66
## Installation
77

@@ -41,11 +41,11 @@ to the new format, introduced in ESLint 2.10.0:
4141

4242
```javascript
4343
module.exports = {
44-
meta: {
45-
docs: {},
46-
schema: []
47-
},
48-
create: function(context) { ... }
44+
meta: {
45+
docs: {},
46+
schema: []
47+
},
48+
create: function(context) { ... }
4949
};
5050
```
5151

lib/v9-rule-migration/v9-rule-migration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//------------------------------------------------------------------------------
1111
// Requirements
1212
//------------------------------------------------------------------------------
13+
1314
const path = require("node:path");
1415

1516
//------------------------------------------------------------------------------
@@ -93,10 +94,9 @@ function getParentObjectMethod(nodePath) {
9394
/**
9495
* Transforms an ESLint rule from the old format to the new format.
9596
* @param {Object} fileInfo holds information about the currently processed file.
96-
* * @param {Object} api holds the jscodeshift API
97+
* @param {Object} api holds the jscodeshift API
9798
* @returns {string} the new source code, after being transformed.
9899
*/
99-
100100
module.exports = function(fileInfo, api) {
101101
const j = api.jscodeshift;
102102
const root = j(fileInfo.source);

0 commit comments

Comments
 (0)