@antfu/eslint-config 1.1.4 → 1.2.1

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/cli.cjs CHANGED
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
46
46
  var import_picocolors = __toESM(require("picocolors"), 1);
47
47
 
48
48
  // package.json
49
- var version = "1.1.4";
49
+ var version = "1.2.1";
50
50
 
51
51
  // src/cli/constants.ts
52
52
  var ARROW = import_picocolors.default.cyan("\u2192");
package/dist/cli.d.cts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
package/dist/cli.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
package/dist/cli.js CHANGED
@@ -17,7 +17,7 @@ import parse from "parse-gitignore";
17
17
  import c from "picocolors";
18
18
 
19
19
  // package.json
20
- var version = "1.1.4";
20
+ var version = "1.2.1";
21
21
 
22
22
  // src/cli/constants.ts
23
23
  var ARROW = c.cyan("\u2192");
package/dist/index.cjs CHANGED
@@ -893,8 +893,17 @@ function stylistic(options = {}) {
893
893
  const {
894
894
  indent = 2,
895
895
  jsx = true,
896
- quotes = "single"
896
+ quotes = "single",
897
+ semi = false
897
898
  } = options;
899
+ const config = import_eslint_plugin.default.configs.customize({
900
+ flat: true,
901
+ indent,
902
+ jsx,
903
+ pluginName: "style",
904
+ quotes,
905
+ semi
906
+ });
898
907
  return [
899
908
  {
900
909
  name: "antfu:stylistic",
@@ -903,149 +912,12 @@ function stylistic(options = {}) {
903
912
  style: import_eslint_plugin.default
904
913
  },
905
914
  rules: {
915
+ ...config.rules,
906
916
  "antfu/consistent-list-newline": "error",
907
917
  "antfu/if-newline": "error",
908
918
  "antfu/indent-binary-ops": ["error", { indent }],
909
919
  "antfu/top-level-function": "error",
910
- "curly": ["error", "multi-or-nest", "consistent"],
911
- "style/array-bracket-spacing": ["error", "never"],
912
- "style/arrow-parens": ["error", "as-needed", { requireForBlockBody: true }],
913
- "style/arrow-spacing": ["error", { after: true, before: true }],
914
- "style/block-spacing": ["error", "always"],
915
- "style/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
916
- "style/comma-dangle": ["error", "always-multiline"],
917
- "style/comma-spacing": ["error", { after: true, before: false }],
918
- "style/comma-style": ["error", "last"],
919
- "style/computed-property-spacing": ["error", "never", { enforceForClassMembers: true }],
920
- "style/dot-location": ["error", "property"],
921
- "style/eol-last": "error",
922
- "style/indent": ["error", indent, {
923
- ArrayExpression: 1,
924
- CallExpression: { arguments: 1 },
925
- flatTernaryExpressions: false,
926
- FunctionDeclaration: { body: 1, parameters: 1 },
927
- FunctionExpression: { body: 1, parameters: 1 },
928
- ignoreComments: false,
929
- ignoredNodes: [
930
- "TemplateLiteral *",
931
- "JSXElement",
932
- "JSXElement > *",
933
- "JSXAttribute",
934
- "JSXIdentifier",
935
- "JSXNamespacedName",
936
- "JSXMemberExpression",
937
- "JSXSpreadAttribute",
938
- "JSXExpressionContainer",
939
- "JSXOpeningElement",
940
- "JSXClosingElement",
941
- "JSXFragment",
942
- "JSXOpeningFragment",
943
- "JSXClosingFragment",
944
- "JSXText",
945
- "JSXEmptyExpression",
946
- "JSXSpreadChild",
947
- "TSUnionType",
948
- "TSIntersectionType",
949
- "TSTypeParameterInstantiation",
950
- "FunctionExpression > .params[decorators.length > 0]",
951
- "FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
952
- "ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
953
- ],
954
- ImportDeclaration: 1,
955
- MemberExpression: 1,
956
- ObjectExpression: 1,
957
- offsetTernaryExpressions: true,
958
- outerIIFEBody: 1,
959
- SwitchCase: 1,
960
- VariableDeclarator: 1
961
- }],
962
- "style/key-spacing": ["error", { afterColon: true, beforeColon: false }],
963
- "style/keyword-spacing": ["error", { after: true, before: true }],
964
- "style/lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
965
- "style/max-statements-per-line": ["error", { max: 1 }],
966
- "style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
967
- "style/multiline-ternary": ["error", "always-multiline"],
968
- "style/new-parens": "error",
969
- "style/no-extra-parens": ["error", "functions"],
970
- "style/no-floating-decimal": "error",
971
- "style/no-mixed-operators": ["error", {
972
- allowSamePrecedence: true,
973
- groups: [
974
- ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
975
- ["&&", "||"],
976
- ["in", "instanceof"]
977
- ]
978
- }],
979
- "style/no-mixed-spaces-and-tabs": "error",
980
- "style/no-multi-spaces": "error",
981
- "style/no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }],
982
- "style/no-tabs": indent === "tab" ? "off" : "error",
983
- "style/no-trailing-spaces": "error",
984
- "style/no-whitespace-before-property": "error",
985
- "style/object-curly-spacing": ["error", "always"],
986
- "style/operator-linebreak": ["error", "before"],
987
- "style/padded-blocks": ["error", { blocks: "never", classes: "never", switches: "never" }],
988
- "style/quote-props": ["error", "consistent-as-needed"],
989
- "style/quotes": ["error", quotes, { allowTemplateLiterals: true, avoidEscape: false }],
990
- "style/rest-spread-spacing": ["error", "never"],
991
- "style/semi": ["error", "never"],
992
- "style/semi-spacing": ["error", { after: true, before: false }],
993
- "style/space-before-blocks": ["error", "always"],
994
- "style/space-before-function-paren": ["error", { anonymous: "always", asyncArrow: "always", named: "never" }],
995
- "style/space-in-parens": ["error", "never"],
996
- "style/space-infix-ops": "error",
997
- "style/space-unary-ops": ["error", { nonwords: false, words: true }],
998
- "style/spaced-comment": ["error", "always", {
999
- block: {
1000
- balanced: true,
1001
- exceptions: ["*"],
1002
- markers: ["!"]
1003
- },
1004
- line: {
1005
- exceptions: ["/", "#"],
1006
- markers: ["/"]
1007
- }
1008
- }],
1009
- "style/template-curly-spacing": "error",
1010
- "style/template-tag-spacing": ["error", "never"],
1011
- "style/type-annotation-spacing": ["error", {}],
1012
- "style/wrap-iife": ["error", "any", { functionPrototypeMethods: true }],
1013
- "style/yield-star-spacing": ["error", "both"],
1014
- ...jsx ? {
1015
- "style/jsx-closing-bracket-location": "error",
1016
- "style/jsx-closing-tag-location": "error",
1017
- "style/jsx-curly-brace-presence": ["error", { propElementValues: "always" }],
1018
- "style/jsx-curly-newline": "error",
1019
- "style/jsx-curly-spacing": ["error", "never"],
1020
- "style/jsx-equals-spacing": "error",
1021
- "style/jsx-first-prop-new-line": "error",
1022
- "style/jsx-indent": ["error", indent, { checkAttributes: true, indentLogicalExpressions: true }],
1023
- "style/jsx-indent-props": ["error", indent],
1024
- "style/jsx-max-props-per-line": ["error", { maximum: 1, when: "multiline" }],
1025
- "style/jsx-one-expression-per-line": ["error", { allow: "single-child" }],
1026
- "style/jsx-quotes": "error",
1027
- "style/jsx-tag-spacing": [
1028
- "error",
1029
- {
1030
- afterOpening: "never",
1031
- beforeClosing: "never",
1032
- beforeSelfClosing: "always",
1033
- closingSlash: "never"
1034
- }
1035
- ],
1036
- "style/jsx-wrap-multilines": [
1037
- "error",
1038
- {
1039
- arrow: "parens-new-line",
1040
- assignment: "parens-new-line",
1041
- condition: "parens-new-line",
1042
- declaration: "parens-new-line",
1043
- logical: "parens-new-line",
1044
- prop: "parens-new-line",
1045
- return: "parens-new-line"
1046
- }
1047
- ]
1048
- } : {}
920
+ "curly": ["error", "multi-or-nest", "consistent"]
1049
921
  }
1050
922
  }
1051
923
  ];
package/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@ import { RuleOptions } from '@eslint-types/typescript-eslint/types';
8
8
  import { RuleOptions as RuleOptions$2 } from '@eslint-types/unicorn/types';
9
9
  import { Rules as Rules$1 } from 'eslint-plugin-antfu';
10
10
  export { default as pluginAntfu } from 'eslint-plugin-antfu';
11
- import { UnprefixedRuleOptions } from '@stylistic/eslint-plugin';
11
+ import { UnprefixedRuleOptions, StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
12
12
  export { default as pluginStylistic } from '@stylistic/eslint-plugin';
13
13
  export { default as pluginComments } from 'eslint-plugin-eslint-comments';
14
14
  import * as eslintPluginI from 'eslint-plugin-i';
@@ -79,10 +79,7 @@ interface OptionsHasTypeScript {
79
79
  interface OptionsStylistic {
80
80
  stylistic?: boolean | StylisticConfig;
81
81
  }
82
- interface StylisticConfig {
83
- indent?: number | 'tab';
84
- quotes?: 'single' | 'double';
85
- jsx?: boolean;
82
+ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {
86
83
  }
87
84
  interface OptionsOverrides {
88
85
  overrides?: ConfigItem['rules'];
@@ -255,4 +252,4 @@ declare function renameRules(rules: Record<string, any>, from: string, to: strin
255
252
  };
256
253
  declare function toArray<T>(value: T | T[]): T[];
257
254
 
258
- export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, WrapRuleConfig, antfu, combine, comments, antfu as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, vue, yaml };
255
+ export { type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type Rules, type StylisticConfig, type WrapRuleConfig, antfu, combine, comments, antfu as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, vue, yaml };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { RuleOptions } from '@eslint-types/typescript-eslint/types';
8
8
  import { RuleOptions as RuleOptions$2 } from '@eslint-types/unicorn/types';
9
9
  import { Rules as Rules$1 } from 'eslint-plugin-antfu';
10
10
  export { default as pluginAntfu } from 'eslint-plugin-antfu';
11
- import { UnprefixedRuleOptions } from '@stylistic/eslint-plugin';
11
+ import { UnprefixedRuleOptions, StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
12
12
  export { default as pluginStylistic } from '@stylistic/eslint-plugin';
13
13
  export { default as pluginComments } from 'eslint-plugin-eslint-comments';
14
14
  import * as eslintPluginI from 'eslint-plugin-i';
@@ -79,10 +79,7 @@ interface OptionsHasTypeScript {
79
79
  interface OptionsStylistic {
80
80
  stylistic?: boolean | StylisticConfig;
81
81
  }
82
- interface StylisticConfig {
83
- indent?: number | 'tab';
84
- quotes?: 'single' | 'double';
85
- jsx?: boolean;
82
+ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {
86
83
  }
87
84
  interface OptionsOverrides {
88
85
  overrides?: ConfigItem['rules'];
@@ -255,4 +252,4 @@ declare function renameRules(rules: Record<string, any>, from: string, to: strin
255
252
  };
256
253
  declare function toArray<T>(value: T | T[]): T[];
257
254
 
258
- export { ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, Rules, StylisticConfig, WrapRuleConfig, antfu, combine, comments, antfu as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, vue, yaml };
255
+ export { type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type Rules, type StylisticConfig, type WrapRuleConfig, antfu, combine, comments, antfu as default, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, typescript, unicorn, vue, yaml };
package/dist/index.js CHANGED
@@ -795,8 +795,17 @@ function stylistic(options = {}) {
795
795
  const {
796
796
  indent = 2,
797
797
  jsx = true,
798
- quotes = "single"
798
+ quotes = "single",
799
+ semi = false
799
800
  } = options;
801
+ const config = default7.configs.customize({
802
+ flat: true,
803
+ indent,
804
+ jsx,
805
+ pluginName: "style",
806
+ quotes,
807
+ semi
808
+ });
800
809
  return [
801
810
  {
802
811
  name: "antfu:stylistic",
@@ -805,149 +814,12 @@ function stylistic(options = {}) {
805
814
  style: default7
806
815
  },
807
816
  rules: {
817
+ ...config.rules,
808
818
  "antfu/consistent-list-newline": "error",
809
819
  "antfu/if-newline": "error",
810
820
  "antfu/indent-binary-ops": ["error", { indent }],
811
821
  "antfu/top-level-function": "error",
812
- "curly": ["error", "multi-or-nest", "consistent"],
813
- "style/array-bracket-spacing": ["error", "never"],
814
- "style/arrow-parens": ["error", "as-needed", { requireForBlockBody: true }],
815
- "style/arrow-spacing": ["error", { after: true, before: true }],
816
- "style/block-spacing": ["error", "always"],
817
- "style/brace-style": ["error", "stroustrup", { allowSingleLine: true }],
818
- "style/comma-dangle": ["error", "always-multiline"],
819
- "style/comma-spacing": ["error", { after: true, before: false }],
820
- "style/comma-style": ["error", "last"],
821
- "style/computed-property-spacing": ["error", "never", { enforceForClassMembers: true }],
822
- "style/dot-location": ["error", "property"],
823
- "style/eol-last": "error",
824
- "style/indent": ["error", indent, {
825
- ArrayExpression: 1,
826
- CallExpression: { arguments: 1 },
827
- flatTernaryExpressions: false,
828
- FunctionDeclaration: { body: 1, parameters: 1 },
829
- FunctionExpression: { body: 1, parameters: 1 },
830
- ignoreComments: false,
831
- ignoredNodes: [
832
- "TemplateLiteral *",
833
- "JSXElement",
834
- "JSXElement > *",
835
- "JSXAttribute",
836
- "JSXIdentifier",
837
- "JSXNamespacedName",
838
- "JSXMemberExpression",
839
- "JSXSpreadAttribute",
840
- "JSXExpressionContainer",
841
- "JSXOpeningElement",
842
- "JSXClosingElement",
843
- "JSXFragment",
844
- "JSXOpeningFragment",
845
- "JSXClosingFragment",
846
- "JSXText",
847
- "JSXEmptyExpression",
848
- "JSXSpreadChild",
849
- "TSUnionType",
850
- "TSIntersectionType",
851
- "TSTypeParameterInstantiation",
852
- "FunctionExpression > .params[decorators.length > 0]",
853
- "FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
854
- "ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
855
- ],
856
- ImportDeclaration: 1,
857
- MemberExpression: 1,
858
- ObjectExpression: 1,
859
- offsetTernaryExpressions: true,
860
- outerIIFEBody: 1,
861
- SwitchCase: 1,
862
- VariableDeclarator: 1
863
- }],
864
- "style/key-spacing": ["error", { afterColon: true, beforeColon: false }],
865
- "style/keyword-spacing": ["error", { after: true, before: true }],
866
- "style/lines-between-class-members": ["error", "always", { exceptAfterSingleLine: true }],
867
- "style/max-statements-per-line": ["error", { max: 1 }],
868
- "style/member-delimiter-style": ["error", { multiline: { delimiter: "none" } }],
869
- "style/multiline-ternary": ["error", "always-multiline"],
870
- "style/new-parens": "error",
871
- "style/no-extra-parens": ["error", "functions"],
872
- "style/no-floating-decimal": "error",
873
- "style/no-mixed-operators": ["error", {
874
- allowSamePrecedence: true,
875
- groups: [
876
- ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
877
- ["&&", "||"],
878
- ["in", "instanceof"]
879
- ]
880
- }],
881
- "style/no-mixed-spaces-and-tabs": "error",
882
- "style/no-multi-spaces": "error",
883
- "style/no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }],
884
- "style/no-tabs": indent === "tab" ? "off" : "error",
885
- "style/no-trailing-spaces": "error",
886
- "style/no-whitespace-before-property": "error",
887
- "style/object-curly-spacing": ["error", "always"],
888
- "style/operator-linebreak": ["error", "before"],
889
- "style/padded-blocks": ["error", { blocks: "never", classes: "never", switches: "never" }],
890
- "style/quote-props": ["error", "consistent-as-needed"],
891
- "style/quotes": ["error", quotes, { allowTemplateLiterals: true, avoidEscape: false }],
892
- "style/rest-spread-spacing": ["error", "never"],
893
- "style/semi": ["error", "never"],
894
- "style/semi-spacing": ["error", { after: true, before: false }],
895
- "style/space-before-blocks": ["error", "always"],
896
- "style/space-before-function-paren": ["error", { anonymous: "always", asyncArrow: "always", named: "never" }],
897
- "style/space-in-parens": ["error", "never"],
898
- "style/space-infix-ops": "error",
899
- "style/space-unary-ops": ["error", { nonwords: false, words: true }],
900
- "style/spaced-comment": ["error", "always", {
901
- block: {
902
- balanced: true,
903
- exceptions: ["*"],
904
- markers: ["!"]
905
- },
906
- line: {
907
- exceptions: ["/", "#"],
908
- markers: ["/"]
909
- }
910
- }],
911
- "style/template-curly-spacing": "error",
912
- "style/template-tag-spacing": ["error", "never"],
913
- "style/type-annotation-spacing": ["error", {}],
914
- "style/wrap-iife": ["error", "any", { functionPrototypeMethods: true }],
915
- "style/yield-star-spacing": ["error", "both"],
916
- ...jsx ? {
917
- "style/jsx-closing-bracket-location": "error",
918
- "style/jsx-closing-tag-location": "error",
919
- "style/jsx-curly-brace-presence": ["error", { propElementValues: "always" }],
920
- "style/jsx-curly-newline": "error",
921
- "style/jsx-curly-spacing": ["error", "never"],
922
- "style/jsx-equals-spacing": "error",
923
- "style/jsx-first-prop-new-line": "error",
924
- "style/jsx-indent": ["error", indent, { checkAttributes: true, indentLogicalExpressions: true }],
925
- "style/jsx-indent-props": ["error", indent],
926
- "style/jsx-max-props-per-line": ["error", { maximum: 1, when: "multiline" }],
927
- "style/jsx-one-expression-per-line": ["error", { allow: "single-child" }],
928
- "style/jsx-quotes": "error",
929
- "style/jsx-tag-spacing": [
930
- "error",
931
- {
932
- afterOpening: "never",
933
- beforeClosing: "never",
934
- beforeSelfClosing: "always",
935
- closingSlash: "never"
936
- }
937
- ],
938
- "style/jsx-wrap-multilines": [
939
- "error",
940
- {
941
- arrow: "parens-new-line",
942
- assignment: "parens-new-line",
943
- condition: "parens-new-line",
944
- declaration: "parens-new-line",
945
- logical: "parens-new-line",
946
- prop: "parens-new-line",
947
- return: "parens-new-line"
948
- }
949
- ]
950
- } : {}
822
+ "curly": ["error", "multi-or-nest", "consistent"]
951
823
  }
952
824
  }
953
825
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "1.1.4",
4
+ "version": "1.2.1",
5
5
  "packageManager": "pnpm@8.10.5",
6
6
  "description": "Anthony's ESLint config",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
@@ -32,7 +32,7 @@
32
32
  "@eslint-types/jsdoc": "46.8.2-1",
33
33
  "@eslint-types/typescript-eslint": "^6.9.1",
34
34
  "@eslint-types/unicorn": "^49.0.0",
35
- "@stylistic/eslint-plugin": "^1.2.0",
35
+ "@stylistic/eslint-plugin": "^1.3.2",
36
36
  "@typescript-eslint/eslint-plugin": "^6.11.0",
37
37
  "@typescript-eslint/parser": "^6.11.0",
38
38
  "eslint-config-flat-gitignore": "^0.1.1",
@@ -44,7 +44,7 @@
44
44
  "eslint-plugin-markdown": "^3.0.1",
45
45
  "eslint-plugin-n": "^16.3.1",
46
46
  "eslint-plugin-no-only-tests": "^3.1.0",
47
- "eslint-plugin-perfectionist": "^2.3.0",
47
+ "eslint-plugin-perfectionist": "^2.4.0",
48
48
  "eslint-plugin-unicorn": "^49.0.0",
49
49
  "eslint-plugin-unused-imports": "^3.0.0",
50
50
  "eslint-plugin-vitest": "^0.3.9",
@@ -63,10 +63,9 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@antfu/ni": "^0.21.9",
66
- "@stylistic/eslint-plugin-migrate": "^1.2.0",
67
66
  "@types/eslint": "^8.44.7",
68
67
  "@types/fs-extra": "^11.0.4",
69
- "@types/node": "^20.9.0",
68
+ "@types/node": "^20.9.1",
70
69
  "@types/prompts": "^2.4.8",
71
70
  "@types/yargs": "^17.0.31",
72
71
  "bumpp": "^9.2.0",
@@ -78,10 +77,10 @@
78
77
  "lint-staged": "^15.1.0",
79
78
  "rimraf": "^5.0.5",
80
79
  "simple-git-hooks": "^2.9.0",
81
- "tsup": "^7.2.0",
80
+ "tsup": "^7.3.0",
82
81
  "typescript": "^5.2.2",
83
82
  "vitest": "^0.34.6",
84
- "@antfu/eslint-config": "1.1.4"
83
+ "@antfu/eslint-config": "1.2.1"
85
84
  },
86
85
  "simple-git-hooks": {
87
86
  "pre-commit": "pnpm lint-staged"