All Projects → withspectrum → danger-plugin-flow

withspectrum / danger-plugin-flow

Licence: MIT license
Ensure all JS files that get touched in a PR are flow typed

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to danger-plugin-flow

danger-plugin-lint-report
No description or website provided.
Stars: ✭ 17 (-26.09%)
Mutual labels:  danger, danger-plugin
danger-swift-xcodesummary
A Danger-Swift plugin that adds build errors, warnings and unit tests results generated from xcodebuild to your Danger report
Stars: ✭ 72 (+213.04%)
Mutual labels:  danger, danger-plugin
danger-eslint
A Danger plugin for linting javascript with eslint.
Stars: ✭ 13 (-43.48%)
Mutual labels:  danger, danger-plugin
danger-mention
Danger plugin to automatically mention potential reviewers on pull requests
Stars: ✭ 29 (+26.09%)
Mutual labels:  danger, danger-plugin
danger-flutter lint
A Danger Plugin to lint dart files using flutter analyze command line interface.
Stars: ✭ 28 (+21.74%)
Mutual labels:  danger, danger-plugin
danger-auto label
Enable to set label automatically from Danger. This is made from Danger plugin.
Stars: ✭ 15 (-34.78%)
Mutual labels:  danger, danger-plugin
danger-action
Execute danger action for GitHub Actions.
Stars: ✭ 24 (+4.35%)
Mutual labels:  danger
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+20295.65%)
Mutual labels:  danger
Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (+17621.74%)
Mutual labels:  danger
help-me
When there's none to go to. In times of danger or trouble, there is nowhere to seek help from. Help-me comes with an innovative solution to the above problem. It will automatically send notifications to your nearby people and it will be the moral duty of the people to help the person in danger.
Stars: ✭ 20 (-13.04%)
Mutual labels:  danger
detekt-hint
Detection of design principle violations in Kotlin as a plugin to detekt.
Stars: ✭ 63 (+173.91%)
Mutual labels:  danger

danger-plugin-flow

Build Status npm version

Ensure all new .js files in a project are flow typed

Usage

Install:

yarn add danger-plugin-flow --dev

At a glance:

// dangerfile.js
import { schedule } from 'danger'
import flow from 'danger-plugin-flow'

schedule(flow());

Options

Recommended setup:

schedule(flow({
  modified: "warn",
  created: "fail"
}))

This will fail the build for any newly introduced file that isn't flow typed, but will only warn the developer if they touch a file that's not flow typed. This is what we use because it can be hard to type legacy code, but we want to ensure every newly incoming code is properly typed.

blacklist

Blacklist certain globs from being checked:

schedule(flow({
  blacklist: ['dist/**/*.js']
}))

created

Decide whether you want to warn, fail or ignore newly created files that are untyped:

schedule(flow({
  created: "warn"
}))

schedule(flow({
  created: "fail"
}))

schedule(flow({
  created: false
}))

modified

Decide whether you want to warn, fail or ignore modified files that are untyped:

schedule(flow({
  modified: "warn"
}))

schedule(flow({
  modified: "fail"
}))

schedule(flow({
  modified: false
}))

Changelog

See the GitHub release history.

Contributing

See CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].