eslint-plugin-flowtype-errors
Advanced tools
Comparing version 2.0.3 to 3.0.0-0
@@ -39,3 +39,2 @@ 'use strict'; | ||
/* eslint-disable */ | ||
var flowBin = void 0; /** | ||
@@ -49,7 +48,9 @@ * Run Flow and collect errors in JSON format | ||
try { | ||
if (!process.env.FLOW_BIN) { | ||
flowBin = require('flow-bin'); | ||
flowBin = require('flow-bin'); // eslint-disable-line global-require | ||
} | ||
} catch (e) { | ||
/* eslint-disable */ | ||
console.log(); | ||
@@ -67,4 +68,4 @@ console.log('Oops! Something went wrong! :('); | ||
process.exit(1); | ||
/* eslint-enable */ | ||
} | ||
/* eslint-enable */ | ||
@@ -142,9 +143,21 @@ /** | ||
var output = parsedJSONArray.errors | ||
// Hack #33 | ||
.map(function (_ref) { | ||
var message = _ref.message; | ||
if (_path2.default.resolve(root, message[0].path) !== fullFilepath && message.length === 3 && message[1].descr === 'Property not found in' && message[2].descr === 'object literal' && /^property `.+`$/.test(message[0].descr)) { | ||
/* eslint no-param-reassign: 0 */ | ||
var tmp = message[0]; | ||
message[0] = message[2]; | ||
message[2] = tmp; | ||
var tmp2 = message[0].descr; | ||
message[0].descr = message[2].descr; | ||
message[2].descr = tmp2; | ||
} | ||
return message; | ||
}) | ||
// Temporarily hide the 'inconsistent use of library definitions' issue | ||
.filter(function (_ref) { | ||
var message = _ref.message; | ||
.filter(function (message) { | ||
return !message[0].descr.includes('inconsistent use of') && _path2.default.resolve(root, message[0].path) === fullFilepath && message[0].descr && message[0].descr !== ''; | ||
}).map(function (_ref2) { | ||
var message = _ref2.message; | ||
}).map(function (message) { | ||
var _message = (0, _toArray3.default)(message), | ||
@@ -151,0 +164,0 @@ firstMessage = _message[0], |
{ | ||
"name": "eslint-plugin-flowtype-errors", | ||
"version": "2.0.3", | ||
"version": "3.0.0-0", | ||
"description": "Retrieve Flow errors as ESLint errors.", | ||
@@ -13,5 +13,5 @@ "author": "Amila Welihinda", | ||
"build": "cross-env NODE_ENV=production babel src --out-dir dist", | ||
"lint": "eslint --format=node_modules/eslint-formatter-pretty src test *.js", | ||
"lint": "eslint --ignore-path .gitignore --cache --format=node_modules/eslint-formatter-pretty .", | ||
"preversion": "npm run build", | ||
"spec": "npm run build && jest test/*.spec.js", | ||
"spec": "npm run build && jest test/format.spec.js", | ||
"test": "npm run lint && npm run spec" | ||
@@ -37,28 +37,24 @@ }, | ||
"dependencies": { | ||
"babel-plugin-transform-runtime": "^6.15.0", | ||
"q": "^1.4.1", | ||
"ramda": "^0.22.1", | ||
"shelljs": "^0.7.5", | ||
"babel-plugin-transform-runtime": "^6.22.0", | ||
"shelljs": "^0.7.6", | ||
"slash": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-cli": "^6.22.2", | ||
"babel-eslint": "^7.1.1", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-flow-strip-types": "^6.21.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-preset-stage-0": "^6.16.0", | ||
"babel-register": "^6.18.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-0": "^6.22.0", | ||
"babel-register": "^6.22.0", | ||
"chai": "^3.5.0", | ||
"cross-env": "^3.1.3", | ||
"eslint": "^3.12.2", | ||
"eslint-config-airbnb": "^13.0.0", | ||
"cross-env": "^3.1.4", | ||
"eslint": "^3.14.1", | ||
"eslint-config-airbnb-base": "^11.0.1", | ||
"eslint-formatter-pretty": "^1.1.0", | ||
"eslint-nibble-ignore": "^3.0.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^2.0.2", | ||
"eslint-plugin-react": "^6.8.0", | ||
"flow-bin": "^0.37.4", | ||
"jest-cli": "^18.0.0", | ||
"react": "^15.4.1" | ||
"flow-bin": "^0.38.0", | ||
"jest-cli": "^18.1.0", | ||
"react": "^15.4.2" | ||
}, | ||
@@ -65,0 +61,0 @@ "engines": { |
@@ -52,3 +52,3 @@ eslint-plugin-flowtype-errors | ||
## CI Configuration | ||
**Flow is supported on all OS's except Windows 32bit. Add [this line](https://github.com/amilajack/eslint-plugin-flowtype-errors/blob/master/appveyor.yml#L18) to appveyor to make tests run properly.** | ||
**Flow is supported on all OS's except Windows 32bit. Add [this line](https://github.com/amilajack/eslint-plugin-flowtype-errors/blob/master/appveyor.yml#L12) to appveyor to make tests run properly.** | ||
@@ -55,0 +55,0 @@ ## Editor Configuration |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15865
5
17
262
1
- Removedq@^1.4.1
- Removedramda@^0.22.1
- Removedq@1.5.1(transitive)
- Removedramda@0.22.1(transitive)
Updatedshelljs@^0.7.6