Skip to content

Commit

Permalink
Pin gifenc version to pre-esm rewrite commit (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthehan authored Sep 21, 2024
1 parent d19ad8b commit 1233967
Show file tree
Hide file tree
Showing 6 changed files with 866 additions and 1,283 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

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

This file was deleted.

46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import path from "node:path";
import { fileURLToPath } from "node:url";

import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import sortDestructureKeys from "eslint-plugin-sort-destructure-keys";
import sortKeysFix from "eslint-plugin-sort-keys-fix";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
allConfig: js.configs.all,
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
});

export default [
{
ignores: ["**/coverage/", "**/dist/", "**/node_modules/"],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
),
{
languageOptions: {
parser: tsParser,
},
plugins: {
"@typescript-eslint": typescriptEslint,
"simple-import-sort": simpleImportSort,
"sort-destructure-keys": sortDestructureKeys,
"sort-keys-fix": sortKeysFix,
},
rules: {
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sort-destructure-keys/sort-destructure-keys": "error",
"sort-keys-fix/sort-keys-fix": "error",
},
},
];
Loading

0 comments on commit 1233967

Please sign in to comment.