Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core package #234

Closed
wants to merge 12 commits into from
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": [ "es2015-loose" ],
"presets": [ "es2015-argon" ],
"sourceMaps": "inline"
}
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- 0.10
- 0.12
# - 0.10
# - 0.12
- 4
- stable

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
### Added
- report resolver errors at the top of the linted file

### Removed
- support for Node 0.10, via `es6-*` ponyfills. Using native Map/Set/Symbol.

## [1.4.0] - 2016-03-25
### Added
- Resolver plugin interface v2: more explicit response format that more clearly covers the found-but-core-module case, where there is no path.
Expand Down
6 changes: 3 additions & 3 deletions memo-parser/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict"

const crypto = require('crypto')
, moduleRequire = require('../lib/core/module-require').default
, hashObject = require('../lib/core/hash').hashObject
, moduleRequire = require('eslint-module-utils/module-require').default
, hashObject = require('eslint-module-utils/hash').hashObject

const cache = new Map()

Expand All @@ -22,7 +22,7 @@ exports.parse = function parse(content, options) {

const keyHash = crypto.createHash('sha256')
keyHash.update(content)
hashObject(keyHash, options)
hashObject(options, keyHash)

const key = keyHash.digest('hex')

Expand Down
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
"homepage": "https://github.com/benmosher/eslint-plugin-import",
"devDependencies": {
"babel-eslint": "next",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-es2015-argon": "*",
"chai": "^3.4.0",
"coveralls": "^2.11.4",
"cross-env": "^1.0.7",
"eslint": "2.x",
"eslint-import-resolver-node": "file:./resolvers/node",
"eslint-import-resolver-webpack": "file:./resolvers/webpack",
"eslint-module-utils": "file:./utils",
"glob": "^6.0.2",
"gulp": "^3.9.0",
"gulp-babel": "6.1.2",
Expand All @@ -66,10 +66,6 @@
},
"dependencies": {
"doctrine": "1.2.0",
"es6-map": "^0.1.3",
"es6-set": "^0.1.4",
"es6-symbol": "*",
"eslint-import-resolver-node": "^0.2.0",
"object-assign": "^4.0.1"
"eslint-import-resolver-node": "^0.2.0"
}
}
Loading