File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
# ESLint Transforms
2
2
3
3
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
5
5
6
## Installation
6
7
Original file line number Diff line number Diff line change 3
3
"use strict" ;
4
4
5
5
var execSync = require ( "child_process" ) . execSync ;
6
- var objectAssign = require ( "object-assign" ) ;
7
6
var path = require ( "path" ) ;
8
7
9
8
var argv = process . argv . slice ( 2 ) ;
@@ -18,7 +17,7 @@ var transform = argv[0];
18
17
*/
19
18
function execWithNodeModules ( cmd ) {
20
19
var SEPARATOR = process . platform === "win32" ? ";" : ":" ,
21
- env = objectAssign ( { } , process . env ) ;
20
+ env = Object . assign ( { } , process . env ) ;
22
21
23
22
env . PATH = [
24
23
// Covers case when npm flattens dependencies and the jscodeshift bin will be directly under the root
Original file line number Diff line number Diff line change 9
9
"url" : " https://github.com/eslint/eslint-transforms"
10
10
},
11
11
"engines" : {
12
- "node" : " >=0.10 "
12
+ "node" : " >=4 "
13
13
},
14
14
"bin" : {
15
15
"eslint-transforms" : " ./bin/eslint-transforms.js"
31
31
"mocha" : " ^2.5.3"
32
32
},
33
33
"dependencies" : {
34
- "jscodeshift" : " ^0.3.20" ,
35
- "object-assign" : " ^4.1.0"
34
+ "jscodeshift" : " ^0.3.20"
36
35
},
37
36
"keywords" : [
38
37
" javascript" ,
You can’t perform that action at this time.
0 commit comments