Skip to content

Commit 54f1958

Browse files
authored
1 parent 586d9eb commit 54f1958

File tree

10 files changed

+144
-110
lines changed

10 files changed

+144
-110
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Steps to Reproduce
66

7-
1. [First Step]
8-
2. [Second Step]
9-
3. [and so on...]
7+
1. [First Step]
8+
2. [Second Step]
9+
3. [and so on...]
1010

1111
**Expected behavior:** [What you expect to happen]
1212

@@ -16,9 +16,9 @@
1616

1717
[Please fill this in if you are submitting a bug report]
1818

19-
* Node version: [Replace this]
20-
* ESLint version: [Replace this]
21-
* eslint-plugin-promise version: [Replace this]
19+
- Node version: [Replace this]
20+
- ESLint version: [Replace this]
21+
- eslint-plugin-promise version: [Replace this]
2222

2323
### Additional Information
2424

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
**What is the purpose of this pull request?**
22

3-
* [ ] Documentation update
4-
* [ ] Bug fix
5-
* [ ] New rule
6-
* [ ] Changes an existing rule
7-
* [ ] Add autofixing to a rule
8-
* [ ] Other, please explain:
3+
- [ ] Documentation update
4+
- [ ] Bug fix
5+
- [ ] New rule
6+
- [ ] Changes an existing rule
7+
- [ ] Add autofixing to a rule
8+
- [ ] Other, please explain:
99

1010
**What changes did you make? (Give an overview)**

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,124 @@
11
## 3.8.0
22

3-
* Removed `promise/avoid-new` from recommended configuration
3+
- Removed `promise/avoid-new` from recommended configuration
44
([#119](https://github.com/xjamundx/eslint-plugin-promise/pull/119))
5-
* Ignored event listener callbacks in `promise/prefer-await-to-callbacks`
5+
- Ignored event listener callbacks in `promise/prefer-await-to-callbacks`
66
([#117](https://github.com/xjamundx/eslint-plugin-promise/pull/117))
7-
* Ignored top-level awaits in `promise/prefer-await-to-then`
7+
- Ignored top-level awaits in `promise/prefer-await-to-then`
88
([#126](https://github.com/xjamundx/eslint-plugin-promise/pull/126))
9-
* Added docs for `promise/no-nesting` and `promise/prefer-await-to-then`
9+
- Added docs for `promise/no-nesting` and `promise/prefer-await-to-then`
1010
([#120](https://github.com/xjamundx/eslint-plugin-promise/pull/120))
1111
([#121](https://github.com/xjamundx/eslint-plugin-promise/pull/121))
1212

1313
## 3.7.0
1414

15-
* Added `promise/valid-params` rule
15+
- Added `promise/valid-params` rule
1616
([#85](https://github.com/xjamundx/eslint-plugin-promise/pull/85))
17-
* Added `promise/no-new-statics` rule
17+
- Added `promise/no-new-statics` rule
1818
([#82](https://github.com/xjamundx/eslint-plugin-promise/pull/82))
19-
* Added fixer for `promise/param-names` rule
19+
- Added fixer for `promise/param-names` rule
2020
([#99](https://github.com/xjamundx/eslint-plugin-promise/pull/99))
21-
* Added rule documentation to each rule
21+
- Added rule documentation to each rule
2222
([#91](https://github.com/xjamundx/eslint-plugin-promise/pull/91))
2323

2424
## 3.6.0
2525

26-
* Added `['catch']` support in `catch-or-return`
27-
* Added `no-return-in-finally` rule
28-
* Fixed some formatting in the docs
29-
* Added `allowReject` option to `no-return-wrap`
30-
* Added exceptions for `no-callback-in-promise`
26+
- Added `['catch']` support in `catch-or-return`
27+
- Added `no-return-in-finally` rule
28+
- Fixed some formatting in the docs
29+
- Added `allowReject` option to `no-return-wrap`
30+
- Added exceptions for `no-callback-in-promise`
3131

3232
## 3.5.0
3333

34-
* Added support for recommended settings using
34+
- Added support for recommended settings using
3535
`extends: plugin:promise/recommended`
3636

3737
## 3.4.2
3838

39-
* Fixed always return false positive with ternary (#31)
39+
- Fixed always return false positive with ternary (#31)
4040

4141
## 3.4.1
4242

43-
* fixed #49
43+
- fixed #49
4444

4545
## 3.4.0
4646

47-
* new rule: avoid-new
48-
* new rule: no-promise-in-callback
49-
* new rule: no-callback-in-promise
50-
* new rule: no-nesting
47+
- new rule: avoid-new
48+
- new rule: no-promise-in-callback
49+
- new rule: no-callback-in-promise
50+
- new rule: no-nesting
5151

5252
## 3.3.2
5353

54-
* Removed eslint from peerDeps
54+
- Removed eslint from peerDeps
5555

5656
## 3.3.1
5757

58-
* Updated engines with proper stuff
59-
* Fixed bug for unreachable code
58+
- Updated engines with proper stuff
59+
- Fixed bug for unreachable code
6060

6161
## 3.3.0
6262

63-
* Rule: `prefer-async-to-callbacks` added
64-
* Rule: `prefer-async-to-then` added
63+
- Rule: `prefer-async-to-callbacks` added
64+
- Rule: `prefer-async-to-then` added
6565

6666
## 3.2.1
6767

68-
* Fix: `no-return-wrap` rule missing from index.js
68+
- Fix: `no-return-wrap` rule missing from index.js
6969

7070
## 3.2.0
7171

72-
* Added `no-return-wrap` rule
72+
- Added `no-return-wrap` rule
7373

7474
## 3.1.0
7575

76-
* Added multiple terminationMethods
76+
- Added multiple terminationMethods
7777

7878
## 3.0.1
7979

80-
* Removed deprecated `always-catch` rule
81-
* FIX: always-return error with "fn && fn()"
80+
- Removed deprecated `always-catch` rule
81+
- FIX: always-return error with "fn && fn()"
8282

8383
## 3.0.0
8484

85-
* Updated column and line numbers
86-
* Added flow analysis for better handling of if statements
85+
- Updated column and line numbers
86+
- Added flow analysis for better handling of if statements
8787

8888
## 2.0.1
8989

90-
* Fixed type in docs
90+
- Fixed type in docs
9191

9292
## 2.0.0
9393

94-
* ESLint 3.0 Support
94+
- ESLint 3.0 Support
9595

9696
## 1.3.2
9797

98-
* Updated tests to run on eslint 2.0
99-
* Fixed some issues with `no-native` rule
98+
- Updated tests to run on eslint 2.0
99+
- Fixed some issues with `no-native` rule
100100

101101
## 1.3.1
102102

103-
* Actually added `no-native` rule
103+
- Actually added `no-native` rule
104104

105105
## 1.3.0
106106

107-
* Added `no-native` rule
107+
- Added `no-native` rule
108108

109109
## 1.2.0
110110

111-
* Allow `throw` in `always-return` rule
112-
* Added `terminationMethod` option to `catch-or-return` rule
111+
- Allow `throw` in `always-return` rule
112+
- Added `terminationMethod` option to `catch-or-return` rule
113113

114114
## 1.1.0
115115

116-
* Added `catch-or-return` rule
116+
- Added `catch-or-return` rule
117117

118118
## 1.0.8
119119

120-
* Fixed crash issues
120+
- Fixed crash issues
121121

122122
## 1.0.0 - 1.0.7
123123

124-
* Lots of basic feature updates and doc changes
124+
- Lots of basic feature updates and doc changes

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,73 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of
9+
experience, nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
611

712
## Our Standards
813

9-
Examples of behavior that contributes to creating a positive environment include:
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
1016

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
1622

1723
Examples of unacceptable behavior by participants include:
1824

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
2433

2534
## Our Responsibilities
2635

27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
2839

29-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
40+
Project maintainers have the right and responsibility to remove, edit, or reject
41+
comments, commits, code, wiki edits, issues, and other contributions that are
42+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43+
contributor for other behaviors that they deem inappropriate, threatening,
44+
offensive, or harmful.
3045

3146
## Scope
3247

33-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
3454

3555
## Enforcement
3656

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. The project team
59+
will review and investigate all complaints, and will respond in a way that it
60+
deems appropriate to the circumstances. The project team is obligated to
61+
maintain confidentiality with regard to the reporter of an incident. Further
62+
details of specific enforcement policies may be posted separately.
3863

39-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
4067

4168
## Attribution
4269

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
4472

4573
[homepage]: http://contributor-covenant.org
4674
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ project, you agree to abide by its terms.
1212

1313
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1414

15-
* [How can I contribute?](#how-can-i-contribute)
16-
* [Improve documentation](#improve-documentation)
17-
* [Improve issues](#improve-issues)
18-
* [Give feedback on issues](#give-feedback-on-issues)
19-
* [Write code](#write-code)
20-
* [Setup](#setup)
21-
* [Submitting an issue](#submitting-an-issue)
15+
- [How can I contribute?](#how-can-i-contribute)
16+
- [Improve documentation](#improve-documentation)
17+
- [Improve issues](#improve-issues)
18+
- [Give feedback on issues](#give-feedback-on-issues)
19+
- [Write code](#write-code)
20+
- [Setup](#setup)
21+
- [Submitting an issue](#submitting-an-issue)
2222

2323
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2424

@@ -49,9 +49,9 @@ is a good place to find ongoing discussions.
4949

5050
You can use issue labels to discover issues you could help out with:
5151

52-
* [`bug` issues](https://github.com/xjamundx/eslint-plugin-promise/labels/bug)
52+
- [`bug` issues](https://github.com/xjamundx/eslint-plugin-promise/labels/bug)
5353
are known bugs we'd like to fix
54-
* [`enhancement` issues](https://github.com/xjamundx/eslint-plugin-promise/labels/enhancement)
54+
- [`enhancement` issues](https://github.com/xjamundx/eslint-plugin-promise/labels/enhancement)
5555
are features we're open to including
5656

5757
The
@@ -91,9 +91,9 @@ best experience, but code will also be formatted with a precommit script (using
9191

9292
## Submitting an issue
9393

94-
* Please search the issue tracker before opening an issue.
95-
* Use a clear and descriptive title.
96-
* Include as much information as possible by filling out the provided issue
94+
- Please search the issue tracker before opening an issue.
95+
- Use a clear and descriptive title.
96+
- Include as much information as possible by filling out the provided issue
9797
template.
98-
* The more time you put into an issue, the more we will.
99-
* [The best issue report is a failing test proving it.](https://twitter.com/sindresorhus/status/579306280495357953)
98+
- The more time you put into an issue, the more we will.
99+
- [The best issue report is a failing test proving it.](https://twitter.com/sindresorhus/status/579306280495357953)

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Enforce best practices for JavaScript promises.
1010

1111
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1212

13-
* [Installation](#installation)
14-
* [Usage](#usage)
15-
* [Rules](#rules)
16-
* [Maintainers](#maintainers)
17-
* [License](#license)
13+
- [Installation](#installation)
14+
- [Usage](#usage)
15+
- [Rules](#rules)
16+
- [Maintainers](#maintainers)
17+
- [License](#license)
1818

1919
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2020

@@ -105,13 +105,13 @@ or start with the recommended rule set
105105

106106
## Maintainers
107107

108-
* Jamund Ferguson - [@xjamundx][]
109-
* Macklin Underdown - [@macklinu][]
108+
- Jamund Ferguson - [@xjamundx][]
109+
- Macklin Underdown - [@macklinu][]
110110

111111
## License
112112

113-
* (c) MMXV jden <mailto:[email protected]> - ISC license.
114-
* (c) 2016 Jamund Ferguson <mailto:[email protected]> - ISC license.
113+
- (c) MMXV jden <mailto:[email protected]> - ISC license.
114+
- (c) 2016 Jamund Ferguson <mailto:[email protected]> - ISC license.
115115

116116
[catch-or-return]: docs/rules/catch-or-return.md
117117
[no-return-wrap]: docs/rules/no-return-wrap.md

0 commit comments

Comments
 (0)