Skip to content

Commit

Permalink
refactor: add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Spotika committed Oct 6, 2024
1 parent c43d110 commit eee70fe
Show file tree
Hide file tree
Showing 10 changed files with 1,404 additions and 784 deletions.
21 changes: 21 additions & 0 deletions tests/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


export default [
{
files: ["./src/**/*.{js,mjs,cjs,ts}"],
},
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-object-type": "off",
"indent": ["error", 2]
}
}
];
6 changes: 3 additions & 3 deletions tests/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
preset: 'ts-jest',
testEnvironment: 'node',
maxWorkers: 1
preset: 'ts-jest',
testEnvironment: 'node',
maxWorkers: 1
};
Loading

0 comments on commit eee70fe

Please sign in to comment.