Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada committed Oct 16, 2023
1 parent 6a3cec6 commit 843bf95
Show file tree
Hide file tree
Showing 66 changed files with 2,612 additions and 2,542 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/firebase.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Deploy to Firebase Hosting on PR
'on': pull_request
"on": pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BADGING_PROJECT }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_BADGING_PROJECT }}"
projectId: badging-project
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run precommit
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,jsx,ts,tsx,json,md,html,css,scss}": ["npm run format"]
}
103 changes: 53 additions & 50 deletions DEI.md

Large diffs are not rendered by default.

117 changes: 63 additions & 54 deletions Guide.DEI.md

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
# DEI Project Badging

## About DEI Project Badging

The DEI Project Badging Initiative is a collaboration between [AllIn](https://allinopensource.org/) and [CHAOSS](https://chaoss.community/) that awards badges to open-source projects that demonstrate diversity and inclusion. This initiative promotes leadership, self-reflection, and self-improvement on issues critical to building the Internet as a social good.

The DEI project badges help open source project maintainers showcase their ongoing commitment to improving and supporting diversity, equity, and inclusion.


## How does DEI Project Badging work?

- Open Source projects submit their project repository containing a DEI.md file. Check out what a DEI.md file entails and how to create one [here](https://github.com/AllInOpenSource/All-In/blob/main/DEI.md).

- The project badging scanner bot will search through the DEI.md file in the specified repository for evidence of required metrics.

- Once the scan is complete, the project will receive a markdown snippet that can be included in the README.md as an image of the DEI Project Badge earned.

- Upon the conclusion of each badging level, the project receives an inclusive language report on how to improve its DEI efforts in order to apply for and earn the next badging level.
<img width="901" alt="Badging process" src="https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/06000b65-8d98-4519-b08f-ba0b30e4ce12">

<img width="901" alt="Badging process" src="https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/06000b65-8d98-4519-b08f-ba0b30e4ce12">

## Badging Levels

Currently, the DEI Project Badges are available in four levels

| Level | Badge | Requirements Met
|--------------|--------------|-------------------------------------
| Bronze | ![Bronze-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/804cf75b-0c58-4fef-bf3d-a8d6f88c9f1f) | Presence of DEI.md File
| Silver | ![Silver-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/952bb182-a652-49bc-890a-1c75aab7c8f4) | Comming soon
| Gold | ![Gold-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/0471a7a5-46c0-4056-ada1-c7ad09f31d55) | Comming soon
| Platinum | ![Platinum](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/9de89540-ae31-4197-91b7-c978fcaac204) | Comming soon
| Level | Badge | Requirements Met |
| -------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| Bronze | ![Bronze-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/804cf75b-0c58-4fef-bf3d-a8d6f88c9f1f) | Presence of DEI.md File |
| Silver | ![Silver-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/952bb182-a652-49bc-890a-1c75aab7c8f4) | Comming soon |
| Gold | ![Gold-Badge](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/0471a7a5-46c0-4056-ada1-c7ad09f31d55) | Comming soon |
| Platinum | ![Platinum](https://github.com/Anita-ihuman/ProjectBadging/assets/62384659/9de89540-ae31-4197-91b7-c978fcaac204) | Comming soon |

## Contributing to this Project

This project is still in pilot phase and will commence call for contributor soon.

Don't forget to give the project a star! Thanks again!

### Acknowledgments

Our heartfelt gratitude to all the maintainers of this project. Thank you for your ongoing efforts to maintain and nurture this project.

- [Tochukwu Odeme](https://github.com/Teek-tech)
Expand Down
20 changes: 12 additions & 8 deletions Template.DEI.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ Project Name/Logo Here

Scope of the DEI.md File

[Project Name] prioritizes and reflects on DEI through a regular review of project policies and performance. This reflection is documented in the following DEI.md file based on specific [CHAOSS project](https://chaoss.community) DEI metrics.
[Project Name] prioritizes and reflects on DEI through a regular review of project policies and performance. This reflection is documented in the following DEI.md file based on specific [CHAOSS project](https://chaoss.community) DEI metrics.

### [Project Access](https://chaoss.community/?p=4953)
* Specific points on how your project addresses project access.


- Specific points on how your project addresses project access.

### [Communication Transparency](https://chaoss.community/?p=4957)
* Specific points on how your project addresses communication transparency.


- Specific points on how your project addresses communication transparency.

### [Newcomer Experiences](https://chaoss.community/?p=4891)
* Specific points on how your project addresses the newcomer experience.


- Specific points on how your project addresses the newcomer experience.

### [Inclusive Leadership](https://chaoss.community/?p=3522)
* Specific points on how your project addresses inclusive leadership.

- Specific points on how your project addresses inclusive leadership.

[Project Name] recognizes that the inclusion of the DEI.md file and the provided reflection on the specific DEI metrics does not ensure community safety nor community inclusiveness. The inclusion of the DEI.md file signals that we, as a project, are committed to centering DEI in our project and regularly reviewing and reflecting on our project DEI practices.

Expand Down
6 changes: 1 addition & 5 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 3 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "Website for DEI Project Badging with CHAOSS & All In",
"main": "index.js",
"scripts": {
"lint": "npx eslint .",
"lint:fix": "npm run lint -- --fix",
"eslint": "npx eslint .",
"eslint:fix": "npm run eslint -- --fix",
"prettier": "npx prettier . --check",
"prettier:fix": "npm run prettier -- --write",
"stylelint": "npx stylelint \"**/*.css\" --fix --allow-empty-input",
"format": "npm run prettier:fix && npm run lint:fix && npm run stylelint",
"format": "npm run prettier:fix && npm run eslint:fix && npm run stylelint",
"build": "webpack --mode production",
"dev": "webpack serve",
"test": "echo \"Error: no test specified\"",
Expand Down Expand Up @@ -76,16 +76,5 @@
},
"engines": {
"node": ">= 16.15.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,md,html,css,scss}": [
"npm run format -v",
"git add -v"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit -v"
}
}
}
76 changes: 40 additions & 36 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
import { Route, Routes } from "react-router-dom";
import {
Home,
About,
Projects,
GetStartedBadging,
SelectProjectRepo,
ErrorPage,
SuccessfullyBadged,
Home,
About,
Projects,
GetStartedBadging,
SelectProjectRepo,
ErrorPage,
SuccessfullyBadged,
} from "./pages";
import {
WhatIsDeiBadging,
ApplicationProcess,
DeiBadge,
DeiFile,
WhatIsDeiBadging,
ApplicationProcess,
DeiBadge,
DeiFile,
} from "./components";
import { DataProvider } from "./contexts/DataContext";
import { DesktopProvider } from "./contexts/DesktopContext";

const App = () => {
return (
<>
<DesktopProvider>
<DataProvider>
<Routes>
<Route exact path="/" element={<Home />} />
<Route path="/about" element={<About />}>
<Route path="/about" element={<WhatIsDeiBadging />} />
<Route
path="/about/application-process"
element={<ApplicationProcess />}
/>
<Route path="/about/dei-file" element={<DeiFile />} />
<Route path="/about/dei-badge" element={<DeiBadge />} />
</Route>
<Route path="/badge" element={<GetStartedBadging />} />
<Route path="/select-project" element={<SelectProjectRepo />} />
<Route exact path="/projects" element={<Projects />} />
<Route exact path="/project-badging-successful" element={<SuccessfullyBadged />} />
<Route path="*" element={<ErrorPage />} />
</Routes>
</DataProvider>
</DesktopProvider>
</>
);
return (
<>
<DesktopProvider>
<DataProvider>
<Routes>
<Route exact path="/" element={<Home />} />
<Route path="/about" element={<About />}>
<Route path="/about" element={<WhatIsDeiBadging />} />
<Route
path="/about/application-process"
element={<ApplicationProcess />}
/>
<Route path="/about/dei-file" element={<DeiFile />} />
<Route path="/about/dei-badge" element={<DeiBadge />} />
</Route>
<Route path="/badge" element={<GetStartedBadging />} />
<Route path="/select-project" element={<SelectProjectRepo />} />
<Route exact path="/projects" element={<Projects />} />
<Route
exact
path="/project-badging-successful"
element={<SuccessfullyBadged />}
/>
<Route path="*" element={<ErrorPage />} />
</Routes>
</DataProvider>
</DesktopProvider>
</>
);
};

export default App;
38 changes: 19 additions & 19 deletions src/assets/images/icons/Apply.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
const ApplySvgComponent = (props) => (
<svg viewBox="0 0 28 30" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M7.33317 2.99999H3.33317V6.99999H0.666504V0.333328H7.33317V2.99999ZM27.3332 6.99999V0.333328H20.6665V2.99999H24.6665V6.99999H27.3332ZM7.33317 27H3.33317V23H0.666504V29.6667H7.33317V27ZM24.6665 23V27H20.6665V29.6667H27.3332V23H24.6665ZM20.6665 6.99999H7.33317V23H20.6665V6.99999ZM23.3332 23C23.3332 24.4667 22.1332 25.6667 20.6665 25.6667H7.33317C5.8665 25.6667 4.6665 24.4667 4.6665 23V6.99999C4.6665 5.53333 5.8665 4.33333 7.33317 4.33333H20.6665C22.1332 4.33333 23.3332 5.53333 23.3332 6.99999V23ZM17.9998 9.66666H9.99984V12.3333H17.9998V9.66666ZM17.9998 13.6667H9.99984V16.3333H17.9998V13.6667ZM17.9998 17.6667H9.99984V20.3333H17.9998V17.6667Z"
fill="url(#paint0_linear_581_11)"
/>
<defs>
<linearGradient
id="paint0_linear_581_11"
x1="13.9998"
y1="0.333328"
x2="13.9998"
y2="29.6667"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#818181" />
<stop offset="1" stopColor="#494949" />
</linearGradient>
</defs>
</svg>
<svg viewBox="0 0 28 30" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M7.33317 2.99999H3.33317V6.99999H0.666504V0.333328H7.33317V2.99999ZM27.3332 6.99999V0.333328H20.6665V2.99999H24.6665V6.99999H27.3332ZM7.33317 27H3.33317V23H0.666504V29.6667H7.33317V27ZM24.6665 23V27H20.6665V29.6667H27.3332V23H24.6665ZM20.6665 6.99999H7.33317V23H20.6665V6.99999ZM23.3332 23C23.3332 24.4667 22.1332 25.6667 20.6665 25.6667H7.33317C5.8665 25.6667 4.6665 24.4667 4.6665 23V6.99999C4.6665 5.53333 5.8665 4.33333 7.33317 4.33333H20.6665C22.1332 4.33333 23.3332 5.53333 23.3332 6.99999V23ZM17.9998 9.66666H9.99984V12.3333H17.9998V9.66666ZM17.9998 13.6667H9.99984V16.3333H17.9998V13.6667ZM17.9998 17.6667H9.99984V20.3333H17.9998V17.6667Z"
fill="url(#paint0_linear_581_11)"
/>
<defs>
<linearGradient
id="paint0_linear_581_11"
x1="13.9998"
y1="0.333328"
x2="13.9998"
y2="29.6667"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#818181" />
<stop offset="1" stopColor="#494949" />
</linearGradient>
</defs>
</svg>
);
export default ApplySvgComponent;
48 changes: 24 additions & 24 deletions src/assets/images/icons/GetBadged.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
const GetBadgedSvgComponent = (props) => (
<svg
viewBox="0 0 14 28"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M13.6666 11.9067V0.666672H0.333252V11.9067C0.333252 12.3733 0.573252 12.8133 0.986585 13.0533L6.55992 16.4L5.23992 19.52L0.693252 19.9067L4.14658 22.8933L3.09325 27.3333L6.99992 24.9733L10.9066 27.3333L9.86658 22.8933L13.3199 19.9067L8.77325 19.52L7.45325 16.4L13.0266 13.0533C13.4266 12.8133 13.6666 12.3867 13.6666 11.9067ZM5.66658 12.76L2.99992 11.16V3.33334H5.66658V12.76ZM10.9999 11.16L8.33325 12.76V3.33334H10.9999V11.16Z"
fill="url(#paint0_linear_581_161)"
/>
<defs>
<linearGradient
id="paint0_linear_581_161"
x1="6.99992"
y1="0.666672"
x2="6.99992"
y2="27.3333"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#818181" />
<stop offset="1" stopColor="#494949" />
</linearGradient>
</defs>
</svg>
<svg
viewBox="0 0 14 28"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
d="M13.6666 11.9067V0.666672H0.333252V11.9067C0.333252 12.3733 0.573252 12.8133 0.986585 13.0533L6.55992 16.4L5.23992 19.52L0.693252 19.9067L4.14658 22.8933L3.09325 27.3333L6.99992 24.9733L10.9066 27.3333L9.86658 22.8933L13.3199 19.9067L8.77325 19.52L7.45325 16.4L13.0266 13.0533C13.4266 12.8133 13.6666 12.3867 13.6666 11.9067ZM5.66658 12.76L2.99992 11.16V3.33334H5.66658V12.76ZM10.9999 11.16L8.33325 12.76V3.33334H10.9999V11.16Z"
fill="url(#paint0_linear_581_161)"
/>
<defs>
<linearGradient
id="paint0_linear_581_161"
x1="6.99992"
y1="0.666672"
x2="6.99992"
y2="27.3333"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#818181" />
<stop offset="1" stopColor="#494949" />
</linearGradient>
</defs>
</svg>
);

export default GetBadgedSvgComponent;
Loading

0 comments on commit 843bf95

Please sign in to comment.