@sxzz/eslint-config 7.2.2 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10497,7 +10497,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
10497
10497
  exceptRange?: boolean;
10498
10498
  onlyEquality?: boolean;
10499
10499
  }];
10500
- type ConfigNames = "sxzz/global-ignores" | "sxzz/gitignore" | "sxzz/js/recommended" | "sxzz/js" | "sxzz/comments/recommended" | "sxzz/comments" | "sxzz/imports" | "sxzz/unicorn/unopinionated" | "sxzz/unicorn" | "sxzz/node" | "sxzz/jsdoc" | "sxzz/regexp" | "sxzz/de-morgan" | "sxzz/typescript__typescript-eslint/base" | "sxzz/typescript__typescript-eslint/eslint-recommended" | "sxzz/typescript__typescript-eslint/recommended" | "sxzz/typescript" | "sxzz/typescript/dts-rules" | "sxzz/typescript/cjs-rules" | "sxzz/sort/imports" | "sxzz/markdown/recommended/plugin" | "sxzz/markdown/recommended/processor" | "sxzz/markdown/recommended/code-blocks" | "sxzz/markdown-rules" | "sxzz/yaml/setup" | "sxzz/yaml/rules" | "sxzz/json" | "sxzz/sort/package.json" | "sxzz/sort/tsconfig" | "sxzz/sort/pnpm-workspace" | "sxzz/vue/typescript__typescript-eslint/base" | "sxzz/vue/typescript__typescript-eslint/eslint-recommended" | "sxzz/vue/typescript__typescript-eslint/recommended" | "sxzz/vue/typescript" | "sxzz/vue" | "sxzz/vue/reactivity-transform" | "sxzz/unocss" | "sxzz/prettier" | "sxzz/command" | "sxzz/pnpm/package-json" | "sxzz/pnpm/pnpm-workspace-yaml" | "sxzz/special/cli" | "sxzz/special/tests" | "sxzz/special/allow-default-export" | "sxzz/special/github" | "sxzz/special/components";
10500
+ type ConfigNames = "sxzz/global-ignores" | "sxzz/gitignore" | "sxzz/js/recommended" | "sxzz/js" | "sxzz/comments/recommended" | "sxzz/comments" | "sxzz/imports" | "sxzz/unicorn/unopinionated" | "sxzz/unicorn" | "sxzz/node" | "sxzz/jsdoc" | "sxzz/regexp" | "sxzz/de-morgan" | "sxzz/typescript > typescript-eslint/base" | "sxzz/typescript > typescript-eslint/eslint-recommended" | "sxzz/typescript > typescript-eslint/recommended" | "sxzz/typescript" | "sxzz/typescript/dts-rules" | "sxzz/typescript/cjs-rules" | "sxzz/sort/imports" | "sxzz/markdown/recommended/plugin" | "sxzz/markdown/recommended/processor" | "sxzz/markdown/recommended/code-blocks" | "sxzz/markdown-rules" | "sxzz/yaml/setup" | "sxzz/yaml/rules" | "sxzz/json" | "sxzz/sort/package.json" | "sxzz/sort/tsconfig" | "sxzz/sort/pnpm-workspace" | "sxzz/vue/typescript > typescript-eslint/base" | "sxzz/vue/typescript > typescript-eslint/eslint-recommended" | "sxzz/vue/typescript > typescript-eslint/recommended" | "sxzz/vue/typescript" | "sxzz/vue" | "sxzz/vue/reactivity-transform" | "sxzz/unocss" | "sxzz/prettier" | "sxzz/command" | "sxzz/pnpm/package-json" | "sxzz/pnpm/pnpm-workspace-yaml" | "sxzz/special/cli" | "sxzz/special/tests" | "sxzz/special/allow-default-export" | "sxzz/special/github" | "sxzz/special/components";
10501
10501
  //#endregion
10502
10502
  //#region src/types.d.ts
10503
10503
  type Config = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
package/dist/index.js CHANGED
@@ -698,7 +698,8 @@ const specialCases = () => [
698
698
 
699
699
  //#endregion
700
700
  //#region src/configs/typescript.ts
701
- const typescriptCore = tseslint.config({
701
+ const { defineConfig } = __require("eslint/config");
702
+ const typescriptCore = defineConfig({
702
703
  extends: [...tseslint.configs.recommended],
703
704
  files: [GLOB_TS, GLOB_TSX],
704
705
  name: "sxzz/typescript",
@@ -781,6 +782,10 @@ const unicorn = () => [{
781
782
  "unicorn/no-process-exit": "off",
782
783
  "unicorn/no-this-assignment": "off",
783
784
  "unicorn/no-unreadable-array-destructuring": "off",
785
+ "unicorn/no-useless-undefined": ["error", {
786
+ checkArguments: false,
787
+ checkArrowFunctionBody: false
788
+ }],
784
789
  "unicorn/numeric-separators-style": "off",
785
790
  "unicorn/prefer-module": "off",
786
791
  "unicorn/prefer-query-selector": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxzz/eslint-config",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "description": "ESLint config for @sxzz.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -84,6 +84,9 @@
84
84
  "engines": {
85
85
  "node": ">=20.0.0"
86
86
  },
87
+ "resolutions": {
88
+ "@types/eslint": "-"
89
+ },
87
90
  "prettier": "@sxzz/prettier-config",
88
91
  "scripts": {
89
92
  "dev": "eslint-config-inspector --config eslint-inspector.config.ts",