Skip to content

Commit f8f5c23

Browse files
vitorbalnzakas
authored andcommitted
Breaking: Drop support for node < 4 (fixes #4) (#5)
1 parent 6219d0c commit f8f5c23

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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.
45

56
## Installation
67

bin/eslint-transforms.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"use strict";
44

55
var execSync = require("child_process").execSync;
6-
var objectAssign = require("object-assign");
76
var path = require("path");
87

98
var argv = process.argv.slice(2);
@@ -18,7 +17,7 @@ var transform = argv[0];
1817
*/
1918
function execWithNodeModules(cmd) {
2019
var SEPARATOR = process.platform === "win32" ? ";" : ":",
21-
env = objectAssign({}, process.env);
20+
env = Object.assign({}, process.env);
2221

2322
env.PATH = [
2423
// Covers case when npm flattens dependencies and the jscodeshift bin will be directly under the root

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/eslint/eslint-transforms"
1010
},
1111
"engines": {
12-
"node": ">=0.10"
12+
"node": ">=4"
1313
},
1414
"bin": {
1515
"eslint-transforms": "./bin/eslint-transforms.js"
@@ -31,8 +31,7 @@
3131
"mocha": "^2.5.3"
3232
},
3333
"dependencies": {
34-
"jscodeshift": "^0.3.20",
35-
"object-assign": "^4.1.0"
34+
"jscodeshift": "^0.3.20"
3635
},
3736
"keywords": [
3837
"javascript",

0 commit comments

Comments
 (0)