Skip to content

Commit

Permalink
update deps, add eslint-define-config for eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jan 24, 2025
1 parent 52b507c commit ce12c57
Show file tree
Hide file tree
Showing 6 changed files with 503 additions and 446 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// @ts-expect-error
import config from "./dist/index.js";
import config from "./dist/index.js"; // eslint-disable-line import-x/extensions
export default config;
7 changes: 4 additions & 3 deletions eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {restrictedGlobals, restrictedWorkerGlobals} from "./globals.js";
import {defineConfig} from "eslint-define-config";

export default {
export default defineConfig({
"root": true,
"reportUnusedDisableDirectives": true,
"plugins": [
Expand Down Expand Up @@ -523,7 +524,7 @@ export default {
"import-x/dynamic-import-chunkname": [0],
"import-x/export": [2],
"import-x/exports-last": [0],
"import-x/extensions": [2, "ignorePackages"],
"import-x/extensions": [2, "ignorePackages", {"checkTypeImports": true}],
"import-x/first": [2],
"import-x/group-exports": [0],
"import-x/max-dependencies": [0],
Expand Down Expand Up @@ -1044,4 +1045,4 @@ export default {
"vars-on-top": [0],
"yoda": [2, "never"],
},
};
});
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const baseRules: Rules = {
"array-func/prefer-array-from": [2],
};

const overrides: Overrides = eslintrc.overrides;
const overrides: Overrides = eslintrc.overrides!;

const jsExts = [".js", ".jsx", ".mjs", ".cjs"] as const;
const tsExts = [".ts", ".tsx", ".mts", ".cts"] as const;
Expand Down
Loading

0 comments on commit ce12c57

Please sign in to comment.