@ghettoddos/eslint-config 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +89 -52
  2. package/package.json +28 -28
package/dist/index.d.ts CHANGED
@@ -1023,7 +1023,7 @@ interface RuleOptions {
1023
1023
  * Enforce heading levels increment by one
1024
1024
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
1025
1025
  */
1026
- 'markdown/heading-increment'?: Linter.RuleEntry<[]>;
1026
+ 'markdown/heading-increment'?: Linter.RuleEntry<MarkdownHeadingIncrement>;
1027
1027
  /**
1028
1028
  * Disallow bare URLs
1029
1029
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
@@ -1068,7 +1068,7 @@ interface RuleOptions {
1068
1068
  * Disallow headings without a space after the hash characters
1069
1069
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
1070
1070
  */
1071
- 'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<[]>;
1071
+ 'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<MarkdownNoMissingAtxHeadingSpace>;
1072
1072
  /**
1073
1073
  * Disallow missing label references
1074
1074
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
@@ -1089,6 +1089,11 @@ interface RuleOptions {
1089
1089
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1090
1090
  */
1091
1091
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
1092
+ /**
1093
+ * Disallow spaces around emphasis markers
1094
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md
1095
+ */
1096
+ 'markdown/no-space-in-emphasis'?: Linter.RuleEntry<MarkdownNoSpaceInEmphasis>;
1092
1097
  /**
1093
1098
  * Disallow unused definitions
1094
1099
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
@@ -2478,7 +2483,7 @@ interface RuleOptions {
2478
2483
  */
2479
2484
  'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
2480
2485
  /**
2481
- * Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This would requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
2486
+ * Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
2482
2487
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
2483
2488
  */
2484
2489
  'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
@@ -2488,7 +2493,7 @@ interface RuleOptions {
2488
2493
  */
2489
2494
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
2490
2495
  /**
2491
- * Disallow unused catalogs in `pnpm-workspace.yaml`
2496
+ * Disallow duplicate catalog items in `pnpm-workspace.yaml`
2492
2497
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
2493
2498
  */
2494
2499
  'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
@@ -3001,7 +3006,7 @@ interface RuleOptions {
3001
3006
  'react/no-nested-components'?: Linter.RuleEntry<[]>;
3002
3007
  /**
3003
3008
  * Disallow nesting lazy component declarations inside other components.
3004
- * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3009
+ * @see https://eslint-react.xyz/docs/rules/no-nested-lazy-component-declarations
3005
3010
  */
3006
3011
  'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>;
3007
3012
  /**
@@ -3806,8 +3811,9 @@ interface RuleOptions {
3806
3811
  */
3807
3812
  'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>;
3808
3813
  /**
3809
- * Disallow multiple spaces between inline JSX props
3814
+ * Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead.
3810
3815
  * @see https://eslint.style/rules/jsx-props-no-multi-spaces
3816
+ * @deprecated
3811
3817
  */
3812
3818
  'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
3813
3819
  /**
@@ -8256,6 +8262,10 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
8256
8262
  type MarkdownFencedCodeLanguage = [] | [{
8257
8263
  required?: string[];
8258
8264
  }];
8265
+ // ----- markdown/heading-increment -----
8266
+ type MarkdownHeadingIncrement = [] | [{
8267
+ frontmatterTitle?: string;
8268
+ }];
8259
8269
  // ----- markdown/no-duplicate-definitions -----
8260
8270
  type MarkdownNoDuplicateDefinitions = [] | [{
8261
8271
  allowDefinitions?: string[];
@@ -8274,6 +8284,11 @@ type MarkdownNoEmptyDefinitions = [] | [{
8274
8284
  // ----- markdown/no-html -----
8275
8285
  type MarkdownNoHtml = [] | [{
8276
8286
  allowed?: string[];
8287
+ allowedIgnoreCase?: boolean;
8288
+ }];
8289
+ // ----- markdown/no-missing-atx-heading-space -----
8290
+ type MarkdownNoMissingAtxHeadingSpace = [] | [{
8291
+ checkClosedHeadings?: boolean;
8277
8292
  }];
8278
8293
  // ----- markdown/no-missing-link-fragments -----
8279
8294
  type MarkdownNoMissingLinkFragments = [] | [{
@@ -8284,6 +8299,10 @@ type MarkdownNoMissingLinkFragments = [] | [{
8284
8299
  type MarkdownNoMultipleH1 = [] | [{
8285
8300
  frontmatterTitle?: string;
8286
8301
  }];
8302
+ // ----- markdown/no-space-in-emphasis -----
8303
+ type MarkdownNoSpaceInEmphasis = [] | [{
8304
+ checkStrikethrough?: boolean;
8305
+ }];
8287
8306
  // ----- markdown/no-unused-definitions -----
8288
8307
  type MarkdownNoUnusedDefinitions = [] | [{
8289
8308
  allowDefinitions?: string[];
@@ -8640,10 +8659,17 @@ type NoRestrictedExports = [] | [({
8640
8659
  };
8641
8660
  })];
8642
8661
  // ----- no-restricted-globals -----
8643
- type NoRestrictedGlobals = (string | {
8662
+ type NoRestrictedGlobals = ((string | {
8644
8663
  name: string;
8645
8664
  message?: string;
8646
- })[];
8665
+ })[] | [] | [{
8666
+ globals: (string | {
8667
+ name: string;
8668
+ message?: string;
8669
+ })[];
8670
+ checkGlobalObject?: boolean;
8671
+ globalObjects?: string[];
8672
+ }]);
8647
8673
  // ----- no-restricted-imports -----
8648
8674
  type NoRestrictedImports = ((string | {
8649
8675
  name: string;
@@ -9138,6 +9164,8 @@ type OneVar = [] | [(("always" | "never" | "consecutive") | {
9138
9164
  var?: ("always" | "never" | "consecutive");
9139
9165
  let?: ("always" | "never" | "consecutive");
9140
9166
  const?: ("always" | "never" | "consecutive");
9167
+ using?: ("always" | "never" | "consecutive");
9168
+ awaitUsing?: ("always" | "never" | "consecutive");
9141
9169
  } | {
9142
9170
  initialized?: ("always" | "never" | "consecutive");
9143
9171
  uninitialized?: ("always" | "never" | "consecutive");
@@ -11460,6 +11488,7 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
11460
11488
  const?: (number | ("first" | "off"));
11461
11489
  using?: (number | ("first" | "off"));
11462
11490
  });
11491
+ assignmentOperator?: (number | "off");
11463
11492
  outerIIFEBody?: (number | "off");
11464
11493
  MemberExpression?: (number | "off");
11465
11494
  FunctionDeclaration?: {
@@ -11692,6 +11721,22 @@ type StyleKeywordSpacing = [] | [{
11692
11721
  before?: boolean;
11693
11722
  after?: boolean;
11694
11723
  };
11724
+ arguments?: {
11725
+ before?: boolean;
11726
+ after?: boolean;
11727
+ };
11728
+ as?: {
11729
+ before?: boolean;
11730
+ after?: boolean;
11731
+ };
11732
+ async?: {
11733
+ before?: boolean;
11734
+ after?: boolean;
11735
+ };
11736
+ await?: {
11737
+ before?: boolean;
11738
+ after?: boolean;
11739
+ };
11695
11740
  boolean?: {
11696
11741
  before?: boolean;
11697
11742
  after?: boolean;
@@ -11756,6 +11801,10 @@ type StyleKeywordSpacing = [] | [{
11756
11801
  before?: boolean;
11757
11802
  after?: boolean;
11758
11803
  };
11804
+ eval?: {
11805
+ before?: boolean;
11806
+ after?: boolean;
11807
+ };
11759
11808
  export?: {
11760
11809
  before?: boolean;
11761
11810
  after?: boolean;
@@ -11784,10 +11833,18 @@ type StyleKeywordSpacing = [] | [{
11784
11833
  before?: boolean;
11785
11834
  after?: boolean;
11786
11835
  };
11836
+ from?: {
11837
+ before?: boolean;
11838
+ after?: boolean;
11839
+ };
11787
11840
  function?: {
11788
11841
  before?: boolean;
11789
11842
  after?: boolean;
11790
11843
  };
11844
+ get?: {
11845
+ before?: boolean;
11846
+ after?: boolean;
11847
+ };
11791
11848
  goto?: {
11792
11849
  before?: boolean;
11793
11850
  after?: boolean;
@@ -11820,6 +11877,10 @@ type StyleKeywordSpacing = [] | [{
11820
11877
  before?: boolean;
11821
11878
  after?: boolean;
11822
11879
  };
11880
+ let?: {
11881
+ before?: boolean;
11882
+ after?: boolean;
11883
+ };
11823
11884
  long?: {
11824
11885
  before?: boolean;
11825
11886
  after?: boolean;
@@ -11836,6 +11897,10 @@ type StyleKeywordSpacing = [] | [{
11836
11897
  before?: boolean;
11837
11898
  after?: boolean;
11838
11899
  };
11900
+ of?: {
11901
+ before?: boolean;
11902
+ after?: boolean;
11903
+ };
11839
11904
  package?: {
11840
11905
  before?: boolean;
11841
11906
  after?: boolean;
@@ -11856,6 +11921,10 @@ type StyleKeywordSpacing = [] | [{
11856
11921
  before?: boolean;
11857
11922
  after?: boolean;
11858
11923
  };
11924
+ set?: {
11925
+ before?: boolean;
11926
+ after?: boolean;
11927
+ };
11859
11928
  short?: {
11860
11929
  before?: boolean;
11861
11930
  after?: boolean;
@@ -11900,59 +11969,43 @@ type StyleKeywordSpacing = [] | [{
11900
11969
  before?: boolean;
11901
11970
  after?: boolean;
11902
11971
  };
11903
- typeof?: {
11904
- before?: boolean;
11905
- after?: boolean;
11906
- };
11907
- var?: {
11908
- before?: boolean;
11909
- after?: boolean;
11910
- };
11911
- void?: {
11912
- before?: boolean;
11913
- after?: boolean;
11914
- };
11915
- volatile?: {
11916
- before?: boolean;
11917
- after?: boolean;
11918
- };
11919
- while?: {
11972
+ type?: {
11920
11973
  before?: boolean;
11921
11974
  after?: boolean;
11922
11975
  };
11923
- with?: {
11976
+ typeof?: {
11924
11977
  before?: boolean;
11925
11978
  after?: boolean;
11926
11979
  };
11927
- accessor?: {
11980
+ using?: {
11928
11981
  before?: boolean;
11929
11982
  after?: boolean;
11930
11983
  };
11931
- as?: {
11984
+ var?: {
11932
11985
  before?: boolean;
11933
11986
  after?: boolean;
11934
11987
  };
11935
- async?: {
11988
+ void?: {
11936
11989
  before?: boolean;
11937
11990
  after?: boolean;
11938
11991
  };
11939
- await?: {
11992
+ volatile?: {
11940
11993
  before?: boolean;
11941
11994
  after?: boolean;
11942
11995
  };
11943
- from?: {
11996
+ while?: {
11944
11997
  before?: boolean;
11945
11998
  after?: boolean;
11946
11999
  };
11947
- get?: {
12000
+ with?: {
11948
12001
  before?: boolean;
11949
12002
  after?: boolean;
11950
12003
  };
11951
- let?: {
12004
+ yield?: {
11952
12005
  before?: boolean;
11953
12006
  after?: boolean;
11954
12007
  };
11955
- of?: {
12008
+ accessor?: {
11956
12009
  before?: boolean;
11957
12010
  after?: boolean;
11958
12011
  };
@@ -11960,22 +12013,6 @@ type StyleKeywordSpacing = [] | [{
11960
12013
  before?: boolean;
11961
12014
  after?: boolean;
11962
12015
  };
11963
- set?: {
11964
- before?: boolean;
11965
- after?: boolean;
11966
- };
11967
- using?: {
11968
- before?: boolean;
11969
- after?: boolean;
11970
- };
11971
- yield?: {
11972
- before?: boolean;
11973
- after?: boolean;
11974
- };
11975
- type?: {
11976
- before?: boolean;
11977
- after?: boolean;
11978
- };
11979
12016
  };
11980
12017
  }];
11981
12018
  // ----- style/line-comment-position -----
@@ -12175,6 +12212,7 @@ type StyleNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
12175
12212
  LogicalExpression?: boolean;
12176
12213
  AwaitExpression?: boolean;
12177
12214
  };
12215
+ ignoredNodes?: string[];
12178
12216
  }]);
12179
12217
  // ----- style/no-mixed-operators -----
12180
12218
  type StyleNoMixedOperators = [] | [{
@@ -12290,7 +12328,7 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
12290
12328
  // ----- style/padding-line-between-statements -----
12291
12329
  type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
12292
12330
  type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]]);
12293
- type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
12331
+ type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
12294
12332
  type StylePaddingLineBetweenStatements = {
12295
12333
  blankLine: _StylePaddingLineBetweenStatementsPaddingType;
12296
12334
  prev: _StylePaddingLineBetweenStatementsStatementOption;
@@ -13706,7 +13744,6 @@ type UnocssEnforceClassCompile = [] | [{
13706
13744
  type UnocssOrder = [] | [{
13707
13745
  unoFunctions?: string[];
13708
13746
  unoVariables?: string[];
13709
- [k: string]: unknown | undefined;
13710
13747
  }];
13711
13748
  // ----- unused-imports/no-unused-imports -----
13712
13749
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ghettoddos/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "ghettoDdOS ESLint config",
6
6
  "author": "ghettoDdOS <pen.egor2002@gamil.com> (https://github.com/ghettoDdOS/)",
7
7
  "license": "MIT",
@@ -25,16 +25,16 @@
25
25
  "dist"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@next/eslint-plugin-next": "^15.4.3",
29
- "@prettier/plugin-xml": "^3.4.2",
30
- "@react-native/eslint-plugin": "^0.80.1",
28
+ "@next/eslint-plugin-next": "^15.4.0",
29
+ "@prettier/plugin-xml": "^3.4.1",
30
+ "@react-native/eslint-plugin": ">=0.80.0",
31
31
  "@unocss/eslint-plugin": ">=0.50.0",
32
32
  "eslint": "^9.10.0",
33
- "eslint-plugin-effector": "^0.15.0",
33
+ "eslint-plugin-effector": ">=0.15.0",
34
34
  "eslint-plugin-expo": "^0.1.4",
35
35
  "eslint-plugin-format": ">=0.1.0",
36
- "eslint-plugin-jsx-a11y": "^6.10.2",
37
- "eslint-plugin-react-native": "^5.0.0",
36
+ "eslint-plugin-jsx-a11y": ">=6.10.2",
37
+ "eslint-plugin-react-native": ">=5.0.0",
38
38
  "eslint-plugin-vuejs-accessibility": "^2.4.1"
39
39
  },
40
40
  "peerDependenciesMeta": {
@@ -73,12 +73,12 @@
73
73
  "@antfu/install-pkg": "^1.1.0",
74
74
  "@clack/prompts": "^0.11.0",
75
75
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
76
- "@eslint-react/eslint-plugin": "^1.52.3",
77
- "@eslint/compat": "^1.3.1",
78
- "@eslint/markdown": "^7.1.0",
79
- "@stylistic/eslint-plugin": "^5.2.2",
80
- "@typescript-eslint/eslint-plugin": "^8.39.0",
81
- "@typescript-eslint/parser": "^8.39.0",
76
+ "@eslint-react/eslint-plugin": "^1.52.9",
77
+ "@eslint/compat": "^1.3.2",
78
+ "@eslint/markdown": "^7.2.0",
79
+ "@stylistic/eslint-plugin": "^5.3.1",
80
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
81
+ "@typescript-eslint/parser": "^8.42.0",
82
82
  "eslint-config-flat-gitignore": "^2.1.0",
83
83
  "eslint-flat-config-utils": "^2.1.1",
84
84
  "eslint-merge-processors": "^2.0.0",
@@ -88,45 +88,45 @@
88
88
  "eslint-plugin-jsonc": "^2.20.1",
89
89
  "eslint-plugin-n": "^17.21.3",
90
90
  "eslint-plugin-perfectionist": "^4.15.0",
91
- "eslint-plugin-pnpm": "^1.1.0",
91
+ "eslint-plugin-pnpm": "^1.1.1",
92
92
  "eslint-plugin-react-hooks": "^5.2.0",
93
93
  "eslint-plugin-react-refresh": "^0.4.20",
94
- "eslint-plugin-regexp": "^2.9.1",
94
+ "eslint-plugin-regexp": "^2.10.0",
95
95
  "eslint-plugin-toml": "^0.12.0",
96
96
  "eslint-plugin-unicorn": "^60.0.0",
97
- "eslint-plugin-unused-imports": "^4.1.4",
97
+ "eslint-plugin-unused-imports": "^4.2.0",
98
98
  "eslint-plugin-vue": "^10.4.0",
99
99
  "eslint-plugin-yml": "^1.18.0",
100
100
  "eslint-processor-vue-blocks": "^2.0.0",
101
101
  "globals": "^16.3.0",
102
102
  "jsonc-eslint-parser": "^2.4.0",
103
- "local-pkg": "^1.1.1",
103
+ "local-pkg": "^1.1.2",
104
104
  "parse-gitignore": "^2.0.0",
105
105
  "toml-eslint-parser": "^0.10.0",
106
106
  "vue-eslint-parser": "^10.2.0",
107
107
  "yaml-eslint-parser": "^1.3.0"
108
108
  },
109
109
  "devDependencies": {
110
- "@eslint/config-inspector": "^1.1.0",
111
- "@next/eslint-plugin-next": "^15.4.5",
110
+ "@eslint/config-inspector": "^1.2.0",
111
+ "@next/eslint-plugin-next": "^15.5.2",
112
112
  "@prettier/plugin-xml": "^3.4.2",
113
- "@react-native/eslint-plugin": "^0.80.2",
113
+ "@react-native/eslint-plugin": "^0.81.1",
114
114
  "@types/eslint-plugin-jsx-a11y": "^6.10.0",
115
- "@types/node": "^24.2.0",
116
- "@unocss/eslint-plugin": "^66.4.1",
117
- "bumpp": "^10.2.2",
118
- "eslint": "^9.32.0",
119
- "eslint-plugin-effector": "^0.15.0",
115
+ "@types/node": "^24.3.0",
116
+ "@unocss/eslint-plugin": "^66.5.0",
117
+ "bumpp": "^10.2.3",
118
+ "eslint": "^9.34.0",
119
+ "eslint-plugin-effector": "^0.16.0",
120
120
  "eslint-plugin-expo": "^0.1.4",
121
121
  "eslint-plugin-format": "^1.0.1",
122
122
  "eslint-plugin-jsx-a11y": "^6.10.2",
123
123
  "eslint-plugin-react-native": "^5.0.0",
124
124
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
125
125
  "eslint-typegen": "^2.3.0",
126
- "lint-staged": "^16.1.4",
126
+ "lint-staged": "^16.1.6",
127
127
  "simple-git-hooks": "^2.13.1",
128
- "tsdown": "^0.13.3",
129
- "tsx": "^4.20.3",
128
+ "tsdown": "^0.14.2",
129
+ "tsx": "^4.20.5",
130
130
  "typescript": "^5.9.2"
131
131
  },
132
132
  "simple-git-hooks": {