-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Travis: Remove old versions; add 12, 14, 16, 17
- npm: Add recommended `bugs`, `keywords`, `dependencies` and use `author`/`contributors` - npm: Update devDeps, and switch to Babel 7/preset-env - npm: Use simple run script syntax - npm: Drop `package-lock.json` in favor of npmrc for consistency with other estools projects - Maintenance: Add `.editorconfig` - Maintenance: Drop use of gulpfile - Update: Mocha API - Testing: Add nyc - Testing: Use `chai/register-expect` - Testing: Drop bundled `esprima` in favor of using versioned - Testing: Update espree API to supply `sourceType`/`ecmaVersion` - Testing: Enable `espree` for dynamic import and adjust test expectation to take into account full Program context - Docs: Use more modern syntax in examples
- Loading branch information
Showing
14 changed files
with
97 additions
and
5,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"presets": [["env", { | ||
"presets": [["@babel/preset-env", { | ||
"targets": { | ||
"node": "4.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ arch: | |
- ppc64le | ||
language: node_js | ||
node_js: | ||
- 4 | ||
- 6 | ||
- 8 | ||
- 12 | ||
- 14 | ||
- 16 | ||
- 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,39 +2,60 @@ | |
"name": "estraverse", | ||
"description": "ECMAScript JS AST traversal functions", | ||
"homepage": "https://github.com/estools/estraverse", | ||
"bugs": "https://github.com/estools/estraverse/issues", | ||
"main": "estraverse.js", | ||
"version": "5.3.0", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Yusuke Suzuki", | ||
"email": "[email protected]", | ||
"web": "http://github.com/Constellation" | ||
} | ||
"keywords": [ | ||
"traversal" | ||
], | ||
"author": { | ||
"name": "Yusuke Suzuki", | ||
"email": "[email protected]", | ||
"web": "http://github.com/Constellation" | ||
}, | ||
"contributors": [ | ||
"Brett Zamir" | ||
], | ||
"files": [ | ||
"estraverse.js", | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/estools/estraverse.git" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"babel-preset-env": "^1.6.1", | ||
"babel-register": "^6.3.13", | ||
"chai": "^2.1.1", | ||
"espree": "^1.11.0", | ||
"gulp": "^3.8.10", | ||
"gulp-bump": "^0.2.2", | ||
"gulp-filter": "^2.0.0", | ||
"gulp-git": "^1.0.1", | ||
"gulp-tag-version": "^1.3.0", | ||
"jshint": "^2.5.6", | ||
"mocha": "^2.1.0" | ||
"@babel/core": "^7.17.5", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/register": "^7.17.0", | ||
"chai": "^4.3.6", | ||
"espree": "^9.3.1", | ||
"esprima": "^4.0.1", | ||
"jshint": "^2.13.4", | ||
"mocha": "^9.2.1", | ||
"nyc": "^15.1.0" | ||
}, | ||
"license": "BSD-2-Clause", | ||
"nyc": { | ||
"branches": 100, | ||
"lines": 100, | ||
"functions": 100, | ||
"statements": 100, | ||
"reporter": [ | ||
"html", | ||
"text" | ||
], | ||
"exclude": [ | ||
"test" | ||
] | ||
}, | ||
"scripts": { | ||
"test": "npm run-script lint && npm run-script unit-test", | ||
"test": "npm run lint && npm run unit-test", | ||
"lint": "jshint estraverse.js", | ||
"unit-test": "mocha --compilers js:babel-register" | ||
"unit-test": "nyc mocha --require chai/register-expect.js --require @babel/register" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.