Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Remove ESLint configurations and update dependencies
Browse files Browse the repository at this point in the history
Deleted .eslintignore and .eslintrc.json files to remove ESLint configurations. Updated multiple dependencies and devDependencies to newer versions. This includes adjustments in the codebase and tests to accommodate these changes.
  • Loading branch information
mysticfall committed Aug 24, 2024
1 parent a99c504 commit 97f302f
Show file tree
Hide file tree
Showing 14 changed files with 1,821 additions and 2,177 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ programming paradigms, it's purely experimental at this point and not suitable f

| Statements | Branches | Functions | Lines |
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
| ![Statements](https://img.shields.io/badge/statements-98.11%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-97.44%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-90.32%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-98.11%25-brightgreen.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-16.91%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-95.96%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-85.5%25-yellow.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-16.91%25-red.svg?style=flat) |

## Motivation

Expand Down
36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
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: ["dist/**", "node_modules/**", "vite.config.js"],
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
plugins: {
"@typescript-eslint": typescriptEslint,
},
files: [".ts"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},

rules: {},
}];
Loading

0 comments on commit 97f302f

Please sign in to comment.