Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 12, 2024
1 parent 2706b80 commit c1f8eef
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 86 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,13 @@ module.exports = {
'jsx-a11y/control-has-associated-label': 'off',
'jsx-a11y/no-autofocus': 'off',
},
overrides: [...baseline.overrides],
overrides: [
...baseline.overrides,
{
files: ['contributor-dashboard-legacy/**'],
rules: {
'import/no-unresolved': 'off', // TODO, to fix at one point
},
},
],
};
1 change: 1 addition & 0 deletions contributor-dashboard-legacy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Bugfixes and feature suggestions are greatly appreciated. Though this project is
Copy `.env.example` to `.env` and fill in the values as instructed in the file.

```bash
$ pnpm --ignore-workspace install
$ npx netlify login
$ npx netlify dev
```
2 changes: 0 additions & 2 deletions contributor-dashboard-legacy/functions/circle-ci-artifacts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const fetch = require("node-fetch");

async function fetchCircleCIApiV2(endpoint) {
const url = `https://circleci.com/api/v2/${endpoint}`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const crypto = require("crypto");
const zlib = require("zlib");
const fetch = require("node-fetch");
const { URL } = require("url");
const util = require("util");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const fetch = require("node-fetch");

/**
* Whether we sent Cache-Control headers.
* Can't send them from netlify due to https://community.netlify.com/t/netlify-function-responds-with-wrong-body/27138
Expand Down
10 changes: 6 additions & 4 deletions contributor-dashboard-legacy/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[build]
functions = "functions"

base = "contributor-dashboard-legacy"

# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "contributor-dashboard-legacy/build"
publish = "build"

# Default build command.
command = "pnpm build"

[build.environment]
NODE_VERSION = "20"
NODE_VERSION = "18"
PNPM_FLAGS = "--ignore-workspace"

[functions]
directory = "functions"
4 changes: 1 addition & 3 deletions contributor-dashboard-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"dependencies": {
"@emotion/react": "^11.1.2",
"@emotion/styled": "^11.0.0",
"@mui/material": "^6.0.0",
"@mui/icons-material": "^6.0.0",
"@mui/material": "^6.0.0",
"pretty-bytes": "^5.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
Expand All @@ -20,8 +20,6 @@
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.3",
"netlify-cli": "^2.69.0",
"node-fetch": "^2.6.1",
"prettier": "^2.0.2",
"react-scripts": "^5.0.0",
"typescript": "^4.1.0"
},
Expand Down
17 changes: 2 additions & 15 deletions contributor-dashboard-legacy/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-plugin-testing-library": "^6.2.2",
"eslint-plugin-typescript-enum": "2.1.0",
"prettier": "^3.3.3",
"pretty-quick": "^3.1.3",
"pretty-quick": "^4.0.0",
"typescript": "^4.6.4"
},
"dependencies": {
Expand Down
79 changes: 22 additions & 57 deletions pnpm-lock.yaml

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

0 comments on commit c1f8eef

Please sign in to comment.