-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin gifenc version to pre-esm rewrite commit (#31)
- Loading branch information
1 parent
d19ad8b
commit 1233967
Showing
6 changed files
with
866 additions
and
1,283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.