Skip to content

Commit

Permalink
chore(eslint): eslint and git pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrixA committed Apr 19, 2024
1 parent d2cdc25 commit f9dbcb8
Show file tree
Hide file tree
Showing 26 changed files with 7,993 additions and 10,992 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");

export default tseslint.config(
module.exports = tseslint.config(
{
ignores: ["**/__test__", "**/*.json"],
},
Expand All @@ -11,7 +11,6 @@ export default tseslint.config(
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
ecmaVersion: 2020,
},
},
Expand All @@ -38,6 +37,7 @@ export default tseslint.config(
semi: "error",
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"no-shadow": [2, { allow: ["req", "res", "err"] }],
"new-cap": 0,
"one-var-declaration-per-line": 0,
Expand Down
Loading

0 comments on commit f9dbcb8

Please sign in to comment.