eslint-plugin-flowtype-errors
Advanced tools
Comparing version 4.0.0-1 to 4.0.0-2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _path = _interopRequireDefault(require("path")); | ||
@@ -119,3 +124,3 @@ | ||
module.exports = { | ||
var _default = { | ||
rules: { | ||
@@ -173,2 +178,3 @@ 'enforce-min-coverage': function enforceMinCoverage(context) { | ||
} | ||
}; | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "eslint-plugin-flowtype-errors", | ||
"version": "4.0.0-1", | ||
"version": "4.0.0-2", | ||
"description": "Retrieve Flow errors as ESLint errors.", | ||
@@ -61,2 +61,3 @@ "author": "Amila Welihinda", | ||
"flow-bin": "0.93.0", | ||
"husky": "^1.3.1", | ||
"jest-cli": "^24.1.0", | ||
@@ -130,3 +131,8 @@ "prettier": "^1.16.4", | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn test" | ||
} | ||
} | ||
} |
@@ -67,7 +67,8 @@ eslint-plugin-flowtype-errors | ||
Add this line to the 'settings' section of your `.eslintrc` if your `.flowconfig` file is located in a different folder than the execution path of eslint. | ||
Add this line to the 'settings' section of your `.eslintrc` to force the Flow server to stop after it finishes checking types. | ||
```js | ||
"settings": { | ||
"flowtype-errors": { | ||
"flowDir": "./myDir" | ||
"stopOnExit": true | ||
} | ||
@@ -77,4 +78,16 @@ }, | ||
Run `eslint` and and you're all set! | ||
**Step 4. Lint** | ||
Run `eslint` and you're all set! | ||
## Support | ||
If this project is saving you (or your team) time, please consider supporting it on Patreon 👍 thank you! | ||
<p> | ||
<a href="https://www.patreon.com/amilajack"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160"> | ||
</a> | ||
</p> | ||
## CI Configuration | ||
@@ -81,0 +94,0 @@ **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.** |
23533
410
118
27