Skip to content

Commit

Permalink
Merge pull request #97 from Loathing-Associates-Scripting-Society/fix…
Browse files Browse the repository at this point in the history
…-eslint-build-issues

Fix eslint build issues
  • Loading branch information
phulin authored Aug 30, 2024
2 parents 51081b8 + b3e9857 commit b4dd12e
Show file tree
Hide file tree
Showing 6 changed files with 14,157 additions and 20,075 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
- name: Run client ESLint & Prettier
run: cd client && yarn run lint
- name: Check client types
run: cd client && yarn run tsc
run: cd client && yarn run generate && yarn run tsc
- name: Install server modules
run: cd server && yarn install --frozen-lockfile
- name: Run server ESLint & Prettier
run: cd server && yarn run lint
- name: Check server types
run: cd server && yarn run build:types

Expand Down
11 changes: 10 additions & 1 deletion client/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ import tseslint from "typescript-eslint";
export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
"node_modules/**/*",
"build/**/*",
"src/generated/**/*",
"KoLmafia/**/*",
"config-overrides/**/*",
"src/setupProxy.js/**/*",
],
},
{
languageOptions: {
parserOptions: {
Expand All @@ -22,7 +32,6 @@ export default [
"react-hooks": fixupPluginRules(reactHooksPlugin),
libram: libramPlugin,
},
ignores: ["/node_modules/**/*", "/build/**/*", "/src/generated/**/*"],
rules: {
"block-scoped-var": "error",
curly: ["error", "multi-line"],
Expand Down
1 change: 0 additions & 1 deletion client/src/contexts/NagContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export interface NagContextValue {

const NagContext = createContext<NagContextValue>({
nags: {},
// eslint-disable-next-line @typescript-eslint/no-empty-function
withNag() {},
});

Expand Down
1 change: 0 additions & 1 deletion client/src/contexts/RefreshContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import React, { createContext, ReactNode, useEffect, useState } from "react";
import useInterval from "../hooks/useInterval";
import { markRemoteCallCacheDirty } from "../kolmafia/remote";

// eslint-disable-next-line @typescript-eslint/no-empty-function
export let triggerSoftRefresh = () => {};

const RefreshContext = createContext({
Expand Down
Loading

0 comments on commit b4dd12e

Please sign in to comment.