Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues/#165 #166

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/.eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions src/.eslintrc.yaml

This file was deleted.

50 changes: 50 additions & 0 deletions src/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import globals from "globals";
import js from "@eslint/js";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import typescriptEslintParser from "@typescript-eslint/parser";

/** @type {import("eslint").Linter.FlatConfig[]} */
export default [
// Target files
{
files: ["**/*.ts"],
},

// Ignore files
{
ignores: ["**/node_modules/**", "**/dist/**", "**/coverage/**"],
},

// Use eslint recommended rule
js.configs.recommended,

// Parser for TypeScript
{
languageOptions: {
parser: typescriptEslintParser,
globals: {
...globals.node,
},
},
},

// Plugin for TypeScript
{
plugins: {
"@typescript-eslint": typescriptEslint,
},
rules: {
...typescriptEslint.configs.recommended.rules,
},
},

// Settings for jest
{
files: ["**/__tests__/**"],
languageOptions: {
globals: {
...globals.jest,
},
},
},
];
Loading
Loading