Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v2
Expand Down
48 changes: 48 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import js from "@eslint/js";
import globals from "globals";
import eslintPluginNext from "@next/eslint-plugin-next";
import prettierConfig from "eslint-config-prettier";

export default [
js.configs.recommended,
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
"@typescript-eslint": typescriptEslint,
"@next/next": eslintPluginNext,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 12,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
...globals.es2021,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
...typescriptEslint.configs.recommended.rules,
...eslintPluginNext.configs.recommended.rules,
...eslintPluginNext.configs["core-web-vitals"].rules,
...prettierConfig.rules,
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": "error",
},
},
{
ignores: [".next/**", "node_modules/**", "out/**", "public/**"],
}
];
5 changes: 2 additions & 3 deletions generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Octokit } from "@octokit/core";
import { retry } from "@octokit/plugin-retry";
import { throttling } from "@octokit/plugin-throttling";
import { RequestOptions } from "@octokit/types";
import { buildSchema, GraphQLSchema, parse, validate as validateGraphQL } from "graphql";
import { buildSchema, parse, validate as validateGraphQL } from "graphql";
import dayjs from "dayjs";
import fs from "fs";
import millify from "millify";
Expand All @@ -11,7 +11,6 @@ import slugify from "slugify";
import happycommits from "./happycommits.json";
import {
CountableTag as CountableTagModel,
Issue as IssueModel,
Repository as RepositoryModel,
Tag as TagModel
} from "./types";
Expand Down Expand Up @@ -497,6 +496,6 @@ const getRepositories = async (
.finally(() => {
console.log("Data generation complete.");
})
.catch((error: any) => {
.catch((error: unknown) => {
console.error(error);
});
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
Expand Down
Loading
Loading