Skip to content

Commit

Permalink
BROKEN: Merge branch 'master' into db
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfarmer committed Oct 4, 2024
2 parents 6567bfe + 4d2057d commit cc8058d
Show file tree
Hide file tree
Showing 14 changed files with 4,514 additions and 2,805 deletions.
20 changes: 0 additions & 20 deletions .eslintrc

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: TypeScript Compile Check
name: Static Analysis
on:
push:
branches:
Expand All @@ -7,7 +7,7 @@ on:
branches:
- master
jobs:
build:
Typing-and-Linting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -19,4 +19,6 @@ jobs:
- name: Install dependencies
run: npm install
- name: Run TypeScript compiler
run: npm exec tsc -- --noEmit
run: npm run typecheck
- name: Run Eslint check
run: npm run lint:check
41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

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 [
{
ignores: ["**/out", "**/build", "**/dist"]
},
...compat.extends("plugin:@typescript-eslint/recommended"),
{
plugins: {
"@typescript-eslint": typescriptEslint
},

languageOptions: {
parser: tsParser
}
},
{
files: ["**/*"],

rules: {
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-types": "off"
}
}
];
Loading

0 comments on commit cc8058d

Please sign in to comment.