forked from anitab-org/anitab-forms-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: integrated Eslint and Prettier (anitab-org#94)
- Loading branch information
1 parent
ecff8f9
commit a1a1f58
Showing
76 changed files
with
6,670 additions
and
6,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2018 | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"plugins": ["react", "react-hooks", "prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"react/no-unescaped-entities": "off", | ||
"react/prop-types": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: OSP Web QA Checks | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run-linters: | ||
name: Linters and Formatters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# ESLint and Prettier must be in `package.json` | ||
- name: Install Node.js dependencies | ||
run: npm install | ||
|
||
- name: Linters and Formatters Check | ||
uses: wearerequired/lint-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Enable linters | ||
eslint: true | ||
prettier: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,28 +20,28 @@ If you see someone who is making an extra effort to ensure our community is welc | |
|
||
The following behaviors are expected and requested of all community members: | ||
|
||
* Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. | ||
* Exercise consideration and respect in your speech and actions. | ||
* Attempt collaboration before conflict. | ||
* Refrain from demeaning, discriminatory, or harassing behavior and speech. | ||
* Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. | ||
* Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. | ||
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community. | ||
- Exercise consideration and respect in your speech and actions. | ||
- Attempt collaboration before conflict. | ||
- Refrain from demeaning, discriminatory, or harassing behavior and speech. | ||
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential. | ||
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations. | ||
|
||
## 4. Unacceptable Behavior | ||
|
||
The following behaviors are considered harassment and are unacceptable within our community: | ||
|
||
* Violence, threats of violence or violent language directed against another person. | ||
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. | ||
* Posting or displaying sexually explicit or violent material. | ||
* Posting or threatening to post other people’s personally identifying information ("doxing"). | ||
* Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. | ||
* Inappropriate photography or recording. | ||
* Inappropriate physical contact. You should have someone’s consent before touching them. | ||
* Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. | ||
* Deliberate intimidation, stalking or following (online or in person). | ||
* Advocating for, or encouraging, any of the above behavior. | ||
* Sustained disruption of community events, including talks and presentations. | ||
- Violence, threats of violence or violent language directed against another person. | ||
- Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language. | ||
- Posting or displaying sexually explicit or violent material. | ||
- Posting or threatening to post other people’s personally identifying information ("doxing"). | ||
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability. | ||
- Inappropriate photography or recording. | ||
- Inappropriate physical contact. You should have someone’s consent before touching them. | ||
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances. | ||
- Deliberate intimidation, stalking or following (online or in person). | ||
- Advocating for, or encouraging, any of the above behavior. | ||
- Sustained disruption of community events, including talks and presentations. | ||
|
||
## 5. Consequences of Unacceptable Behavior | ||
|
||
|
@@ -52,17 +52,15 @@ Anyone asked to stop unacceptable behavior is expected to comply immediately. | |
If a community member engages in unacceptable behavior, the community admins may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event). | ||
|
||
## 6. Reporting Guidelines | ||
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community admin as soon as possible by emailing [email protected]. Please read [Reporting Guidelines](REPORTING_GUIDELINES.md) for details. | ||
|
||
|
||
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community admin as soon as possible by emailing [email protected]. Please read [Reporting Guidelines](REPORTING_GUIDELINES.md) for details. | ||
|
||
Additionally, community admins are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, community admins (or event managers) will also provide escorts as desired by the person experiencing distress. | ||
|
||
## 7. Addressing Grievances | ||
|
||
Only permanent resolutions (such as bans) may be appealed. To appeal a decision of the working group, contact AnitaB.org staff at [email protected] with your appeal and we will review the case. | ||
|
||
|
||
## 8. Scope | ||
|
||
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues–online and in-person–as well as in all one-on-one communications pertaining to community business. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,47 +8,43 @@ If you believe anyone is in physical danger, please notify appropriate emergency | |
|
||
In your report please include: | ||
|
||
* Your contact info for follow-up contact. | ||
* Names (legal, nicknames, or pseudonyms) of any individuals involved. | ||
* If there were other witnesses besides you, please try to include them as well. | ||
* When and where the incident occurred. Please be as specific as possible. | ||
* Your account of what occurred. | ||
* If there is a publicly available record (e.g. a mailing list archive or a public IRC logger) please include a link. | ||
* Any extra context you believe existed for the incident. | ||
* If you believe this incident is ongoing. | ||
* Any other information you believe we should have. | ||
|
||
|
||
- Your contact info for follow-up contact. | ||
- Names (legal, nicknames, or pseudonyms) of any individuals involved. | ||
- If there were other witnesses besides you, please try to include them as well. | ||
- When and where the incident occurred. Please be as specific as possible. | ||
- Your account of what occurred. | ||
- If there is a publicly available record (e.g. a mailing list archive or a public IRC logger) please include a link. | ||
- Any extra context you believe existed for the incident. | ||
- If you believe this incident is ongoing. | ||
- Any other information you believe we should have. | ||
|
||
## What happens after you file a report? | ||
|
||
You will receive an email from the AnitaB.org Open Source's Code of Conduct response team acknowledging receipt as soon as possible, but within 48 hours. | ||
|
||
The working group will immediately meet to review the incident and determine: | ||
|
||
* What happened. | ||
* Whether this event constitutes a code of conduct violation. | ||
* What kind of response is appropriate. | ||
- What happened. | ||
- Whether this event constitutes a code of conduct violation. | ||
- What kind of response is appropriate. | ||
|
||
If this is determined to be an ongoing incident or a threat to physical safety, the team's immediate priority will be to protect everyone involved. This means we may delay an "official" response until we believe that the situation has ended and that everyone is physically safe. | ||
|
||
Once the team has a complete account of the events they will make a decision as to how to respond. Responses may include: | ||
|
||
Nothing (if we determine no code of conduct violation occurred). | ||
* A private reprimand from the Code of Conduct response team to the individual(s) involved. | ||
* A public reprimand. | ||
* An imposed vacation (i.e. asking someone to "take a week off" from a mailing list or IRC). | ||
* A permanent or temporary ban from some or all of AnitaB.org spaces (events, meetings, mailing lists, IRC, etc.) | ||
* A request to engage in mediation and/or an accountability plan. | ||
We'll respond within one week to the person who filed the report with either a resolution or an explanation of why the situation is not yet resolved. | ||
|
||
- A private reprimand from the Code of Conduct response team to the individual(s) involved. | ||
- A public reprimand. | ||
- An imposed vacation (i.e. asking someone to "take a week off" from a mailing list or IRC). | ||
- A permanent or temporary ban from some or all of AnitaB.org spaces (events, meetings, mailing lists, IRC, etc.) | ||
- A request to engage in mediation and/or an accountability plan. | ||
We'll respond within one week to the person who filed the report with either a resolution or an explanation of why the situation is not yet resolved. | ||
|
||
Once we've determined our final action, we'll contact the original reporter to let them know what action (if any) we'll be taking. We'll take into account feedback from the reporter on the appropriateness of our response, but our response will be determined by what will be best for community safety. | ||
|
||
Finally, the response team will make a report on the situation to the AnitaB.org's Open Source Board. The board may choose to issue a public report of the incident or take additional actions. | ||
|
||
|
||
|
||
## Appealing the response | ||
|
||
Only permanent resolutions (such as bans) may be appealed. To appeal a decision of the working group, contact the community admins at [email protected] with your appeal and we will review the case. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.