Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ESLint Transforms

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

## Installation

Expand Down Expand Up @@ -41,11 +41,11 @@ to the new format, introduced in ESLint 2.10.0:

```javascript
module.exports = {
meta: {
docs: {},
schema: []
},
create: function(context) { ... }
meta: {
docs: {},
schema: []
},
create: function(context) { ... }
};
```

Expand Down
4 changes: 2 additions & 2 deletions lib/v9-rule-migration/v9-rule-migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------

const path = require("node:path");

//------------------------------------------------------------------------------
Expand Down Expand Up @@ -93,10 +94,9 @@ function getParentObjectMethod(nodePath) {
/**
* Transforms an ESLint rule from the old format to the new format.
* @param {Object} fileInfo holds information about the currently processed file.
* * @param {Object} api holds the jscodeshift API
* @param {Object} api holds the jscodeshift API
* @returns {string} the new source code, after being transformed.
*/

module.exports = function(fileInfo, api) {
const j = api.jscodeshift;
const root = j(fileInfo.source);
Expand Down
Loading