Skip to content

Commit

Permalink
Updating libraries + Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xDalete committed Oct 2, 2024
1 parent 16fd596 commit b7c094d
Show file tree
Hide file tree
Showing 6 changed files with 1,259 additions and 2,204 deletions.
17 changes: 0 additions & 17 deletions .eslintrc

This file was deleted.

6 changes: 3 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 @@ -20,5 +20,5 @@ jobs:
run: npm install
- name: Run TypeScript compiler
run: npm run typecheck
- name: Run Eslint checks
run: npm run lint
- 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 b7c094d

Please sign in to comment.