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

[pull] master from anuraghazra:master #78

Merged
merged 27 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
af839e9
ci(deps): bump actions/setup-node from 4.0.2 to 4.0.3 (#3846)
dependabot[bot] Jul 16, 2024
13b3660
build(deps-dev): bump @testing-library/dom from 10.3.1 to 10.3.2 (#3848)
dependabot[bot] Jul 17, 2024
d91f629
build(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#3847)
dependabot[bot] Jul 18, 2024
975d38b
build(deps-dev): bump @testing-library/dom from 10.3.2 to 10.4.0 (#3863)
dependabot[bot] Jul 23, 2024
bf7a3b0
build(deps-dev): bump husky from 9.0.11 to 9.1.1 (#3864)
dependabot[bot] Jul 24, 2024
120f176
ci(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#3879)
dependabot[bot] Jul 30, 2024
8aa4c07
build(deps-dev): bump @testing-library/jest-dom from 6.4.6 to 6.4.8 (…
dependabot[bot] Jul 31, 2024
5325e6a
build(deps-dev): bump husky from 9.1.1 to 9.1.4 (#3876)
dependabot[bot] Aug 1, 2024
16b4382
ci(deps): bump actions/upload-artifact from 4.3.4 to 4.3.5 (#3887)
dependabot[bot] Aug 6, 2024
d52deb0
build(deps-dev): bump lint-staged from 15.2.7 to 15.2.8 (#3884)
dependabot[bot] Aug 7, 2024
911958f
build(deps): bump axios from 1.7.2 to 1.7.3 (#3885)
dependabot[bot] Aug 8, 2024
d0cc449
build(deps-dev): bump axios-mock-adapter from 1.22.0 to 2.0.0 (#3886)
dependabot[bot] Aug 9, 2024
e559268
build(deps-dev): bump eslint from 8.57.0 to 9.8.0 (#3878)
dependabot[bot] Aug 12, 2024
d0c2904
ci(deps): bump actions/upload-artifact from 4.3.5 to 4.3.6 (#3892)
dependabot[bot] Aug 13, 2024
9ce5523
build(deps-dev): bump eslint from 9.8.0 to 9.9.0 (#3891)
dependabot[bot] Aug 14, 2024
5e94451
build(deps): bump axios from 1.7.3 to 1.7.4 (#3896)
dependabot[bot] Aug 15, 2024
08c94ac
build(deps-dev): bump eslint-plugin-jsdoc from 50.0.1 to 50.2.2 (#3902)
dependabot[bot] Aug 20, 2024
30db779
build(deps-dev): bump lint-staged from 15.2.8 to 15.2.9 (#3901)
dependabot[bot] Aug 21, 2024
11219b1
build(deps): bump axios from 1.7.4 to 1.7.5 (#3904)
dependabot[bot] Aug 27, 2024
ce831da
build(deps-dev): bump husky from 9.1.4 to 9.1.5 (#3905)
dependabot[bot] Aug 28, 2024
9a5b007
build(deps-dev): bump eslint from 9.9.0 to 9.9.1 (#3908)
dependabot[bot] Aug 29, 2024
8ecc085
build(deps-dev): bump @testing-library/jest-dom from 6.4.8 to 6.5.0 (…
dependabot[bot] Aug 30, 2024
a8e4458
build(deps-dev): bump @eslint/js from 9.9.0 to 9.9.1 (#3906)
dependabot[bot] Aug 31, 2024
856ea61
refactor: update languages JSON (#3910)
github-actions[bot] Sep 2, 2024
3645362
ci(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0 (#3912)
dependabot[bot] Sep 3, 2024
87dd0fa
build(deps): bump axios from 1.7.5 to 1.7.7 (#3913)
dependabot[bot] Sep 4, 2024
7a1edb2
build(deps-dev): bump lint-staged from 15.2.9 to 15.2.10 (#3914)
dependabot[bot] Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
466 changes: 233 additions & 233 deletions .eslintrc.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ossf-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -36,7 +36,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: SARIF file
path: results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-theme-pr-closer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-langs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand Down
3 changes: 3 additions & 0 deletions api/status/up.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export default async (req, res) => {
try {
await retryer(uptimeFetcher, {});
} catch (err) {
// Resolve eslint no-unused-vars
err;

PATsValid = false;
}

Expand Down
83 changes: 83 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import jsdoc from "eslint-plugin-jsdoc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...compat.extends("prettier"),
{
languageOptions: {
globals: {
...globals.node,
...globals.browser,
},

ecmaVersion: 2022,
sourceType: "module",
},
plugins: {
jsdoc,
},
rules: {
"no-unexpected-multiline": "error",
"accessor-pairs": [
"error",
{
getWithoutSet: false,
setWithoutGet: true,
},
],
"block-scoped-var": "warn",
"consistent-return": "error",
curly: "error",
"no-alert": "error",
"no-caller": "error",
"no-warning-comments": [
"warn",
{
terms: ["TODO", "FIXME"],
location: "start",
},
],
"no-with": "warn",
radix: "warn",
"no-delete-var": "error",
"no-undef-init": "off",
"no-undef": "error",
"no-undefined": "off",
"no-unused-vars": "warn",
"no-use-before-define": "error",
"constructor-super": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"object-shorthand": ["warn"],
"no-mixed-spaces-and-tabs": "warn",
"no-multiple-empty-lines": "warn",
"no-negated-condition": "warn",
"no-unneeded-ternary": "warn",
"keyword-spacing": [
"error",
{
before: true,
after: true,
},
],
"jsdoc/require-returns": "warn",
"jsdoc/require-returns-description": "warn",
"jsdoc/require-param-description": "warn",
"jsdoc/require-jsdoc": "warn",
},
},
];
Loading
Loading