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

Add --bail option #400

Merged
merged 3 commits into from
Apr 1, 2020
Merged

Add --bail option #400

merged 3 commits into from
Apr 1, 2020

Conversation

yamadayuki
Copy link
Collaborator

WHY & WHAT

Support --bail option. Behavior is below.

> yarn frolint
yarn run v1.22.4
$ /Users/wantedly215/dev/src/github.com/wantedly/frolint/node_modules/.bin/frolint
Detected 1 error, 0 warnings
./packages/frolint/src/Context.ts: 1 error, 0 warnings found.
  ./packages/frolint/src/Context.ts:22:7 'a' is assigned a value but never used. Allowed unused vars must match /^_/u. (@typescript-eslint/no-unused-vars)
✨  Done in 4.39s.

> yarn frolint --bail 
yarn run v1.22.4
$ /Users/wantedly215/dev/src/github.com/wantedly/frolint/node_modules/.bin/frolint --bail
Detected 1 error, 0 warnings
./packages/frolint/src/Context.ts: 1 error, 0 warnings found.
  ./packages/frolint/src/Context.ts:22:7 'a' is assigned a value but never used. Allowed unused vars must match /^_/u. (@typescript-eslint/no-unused-vars)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@yamadayuki yamadayuki added the enhancement New feature or request label Apr 1, 2020
@yamadayuki yamadayuki merged commit 1089393 into master Apr 1, 2020
@yamadayuki yamadayuki deleted the yamadayuki/bail-option branch April 1, 2020 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant