eslint-config-un 1.0.0-alpha.17 → 1.0.0-alpha.19

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 (77) hide show
  1. package/dist/{angular-IHCOH3PH.js → angular-YCMZSUBR.js} +14 -11
  2. package/dist/{astro-GXI7QBII.js → astro-USB7EQPO.js} +2 -2
  3. package/dist/{ava-TO7MAEVB.js → ava-2WE465FC.js} +2 -2
  4. package/dist/{better-tailwind-KMEN4AA3.js → better-tailwind-3LM4EYQQ.js} +1 -1
  5. package/dist/{case-police-5RMGCLYB.js → case-police-NOCXLAUN.js} +1 -1
  6. package/dist/{chunk-QQHUJYJX.js → chunk-34U5NLR4.js} +1 -1
  7. package/dist/{chunk-LSLNWIER.js → chunk-7GRRU4PU.js} +17 -17
  8. package/dist/{chunk-T5HX4PC2.js → chunk-7NLUWIPQ.js} +1 -1
  9. package/dist/{chunk-XLOEIP4T.js → chunk-QH3CXGTX.js} +1 -1
  10. package/dist/{cli-EMKWLE5I.js → cli-7X4BSWJY.js} +1 -1
  11. package/dist/{cloudfront-functions-G6NQ6E7Q.js → cloudfront-functions-L7RXJUXL.js} +2 -2
  12. package/dist/{compat-VSJN5QOY.js → compat-7Z4HGBJO.js} +1 -1
  13. package/dist/{cspell-3T3HP53L.js → cspell-ZJVBJY52.js} +1 -1
  14. package/dist/{css-RARKHDQR.js → css-HRLA4CL4.js} +1 -1
  15. package/dist/{css-in-js-BIUJ2LBF.js → css-in-js-76ZEPUBW.js} +1 -1
  16. package/dist/{cypress-SCRTTGBR.js → cypress-R24VFPUT.js} +2 -2
  17. package/dist/{de-morgan-MSD5BDPL.js → de-morgan-6W64X5BH.js} +1 -1
  18. package/dist/{depend-R4F2LYCE.js → depend-VENGPMOB.js} +2 -2
  19. package/dist/{ember-D6NL77SG.js → ember-EGDXPR45.js} +2 -2
  20. package/dist/{erasable-syntax-only-T33PKURB.js → erasable-syntax-only-5USINYBA.js} +1 -1
  21. package/dist/es-ANORRNHP.js +7 -0
  22. package/dist/{eslint-comments-CSBZTYNA.js → eslint-comments-4VRQELVF.js} +1 -1
  23. package/dist/{eslint-plugin-N5CGPTPW.js → eslint-plugin-X3KNR2Y6.js} +2 -2
  24. package/dist/{file-progress-OMN2POVV.js → file-progress-SEBSKC3Z.js} +1 -1
  25. package/dist/{graphql-7O7BR7WI.js → graphql-242LDQKM.js} +1 -1
  26. package/dist/{html-TJRKLC2S.js → html-YP3CKETM.js} +1 -1
  27. package/dist/{import-UVJBHT2S.js → import-VZVFIGD6.js} +1 -1
  28. package/dist/index.d.ts +92 -16
  29. package/dist/index.js +85 -78
  30. package/dist/{jest-NIK3NTYF.js → jest-JLVTPK5H.js} +2 -2
  31. package/dist/{js-6BZSXK5J.js → js-HGHBG5WC.js} +1 -1
  32. package/dist/{js-inline-EYDLPQRG.js → js-inline-MHCUA4LN.js} +1 -1
  33. package/dist/{jsdoc-W5SXLPVV.js → jsdoc-SXCZO6YP.js} +1 -1
  34. package/dist/{json-schema-validator-3KZPOTSC.js → json-schema-validator-SL3OFJPZ.js} +2 -2
  35. package/dist/{jsonc-TY64QAMO.js → jsonc-D3PPQB7R.js} +2 -2
  36. package/dist/{jsx-a11y-UEPJ62AD.js → jsx-a11y-MJR2L2J2.js} +1 -1
  37. package/dist/{lit-JZF6S4SM.js → lit-GVIY5QFO.js} +2 -2
  38. package/dist/{markdown-R7DB6BIE.js → markdown-LC4CZA7Q.js} +2 -2
  39. package/dist/{math-XY6QG5HV.js → math-PTTJZ7SK.js} +1 -1
  40. package/dist/{mdx-MJT4A6GQ.js → mdx-VHHKRW3B.js} +2 -2
  41. package/dist/{mocha-OUWFJILW.js → mocha-NBNKBFSN.js} +2 -2
  42. package/dist/{nextjs-HNKNY5SE.js → nextjs-XJH5ZVRH.js} +1 -1
  43. package/dist/{no-only-tests-UWCW6LKF.js → no-only-tests-XOYQJWLM.js} +2 -2
  44. package/dist/{no-stylistic-rules-FBUSSBZJ.js → no-stylistic-rules-GABBHFPQ.js} +17 -3
  45. package/dist/{no-unsanitized-LHA3QSSU.js → no-unsanitized-OGWYOATL.js} +1 -1
  46. package/dist/{node-273ZUISN.js → node-7CTPMPVL.js} +1 -1
  47. package/dist/{node-dependencies-UKV5GOPN.js → node-dependencies-CUKC32FZ.js} +16 -7
  48. package/dist/{package-json-ZTBAFLNF.js → package-json-YBQP2LMG.js} +2 -2
  49. package/dist/{perfectionist-7LTRVMVF.js → perfectionist-L3RWKIRE.js} +1 -1
  50. package/dist/{playwright-CRA6QX5B.js → playwright-TPAZDIXF.js} +2 -2
  51. package/dist/{pnpm-76WI6QPJ.js → pnpm-R46OJPAM.js} +1 -1
  52. package/dist/{prefer-arrow-functions-4QXLSDRA.js → prefer-arrow-functions-PAXOQPVI.js} +1 -1
  53. package/dist/{promise-ODD5RXNB.js → promise-NOSKOFGV.js} +1 -1
  54. package/dist/{qunit-ZVJGEA2Q.js → qunit-QQGQH32N.js} +2 -2
  55. package/dist/{qwik-RPJ344TO.js → qwik-LPX5C6YC.js} +1 -1
  56. package/dist/{react-TOYI5M5T.js → react-ER2LWC6K.js} +3 -3
  57. package/dist/{regexp-CNS5RQSP.js → regexp-YSTIEWPA.js} +1 -1
  58. package/dist/{security-VBXXDTVR.js → security-6RL4NLI7.js} +1 -1
  59. package/dist/{solid-7ZCRUTFS.js → solid-7QKWJPIJ.js} +1 -1
  60. package/dist/{sonar-L2375M7P.js → sonar-7LDOT2YA.js} +1 -1
  61. package/dist/{storybook-76UMCZ5I.js → storybook-JMBKGYZB.js} +1 -1
  62. package/dist/{svelte-JOJDWOIX.js → svelte-5ARXC4EV.js} +2 -2
  63. package/dist/{tailwind-CRWKODRJ.js → tailwind-6R56UFAJ.js} +1 -1
  64. package/dist/{tanstack-query-XI73YB5E.js → tanstack-query-DEMDV23E.js} +1 -1
  65. package/dist/{testing-library-V326F6F3.js → testing-library-KZXEXNWC.js} +2 -2
  66. package/dist/{toml-NI53T5SB.js → toml-PHKO7GS7.js} +2 -2
  67. package/dist/{ts-6R6P3NA4.js → ts-UCT2BC5A.js} +2 -3
  68. package/dist/{turbo-UQ5MXNNT.js → turbo-FDDLGWOI.js} +1 -1
  69. package/dist/{unicorn-7A2GHV5W.js → unicorn-FO5MAYSE.js} +1 -1
  70. package/dist/{unused-imports-GPD2LT5L.js → unused-imports-HDTO5QS3.js} +1 -1
  71. package/dist/{vitest-G2R3C5ZD.js → vitest-XNTUJCDA.js} +2 -2
  72. package/dist/{vue-RO7Y7LXW.js → vue-O6WXAMCF.js} +2 -2
  73. package/dist/{yaml-6AMTF3WA.js → yaml-6TDWDDUY.js} +2 -2
  74. package/dist/you-dont-need-lodash-underscore-PNLNS64I.js +113 -0
  75. package/package.json +7 -7
  76. package/dist/es-2I3FZ33P.js +0 -7
  77. package/dist/you-dont-need-lodash-underscore-44IIQOXW.js +0 -27
@@ -10,7 +10,7 @@ import {
10
10
  interopDefault,
11
11
  klona,
12
12
  pluginsLoaders
13
- } from "./chunk-LSLNWIER.js";
13
+ } from "./chunk-7GRRU4PU.js";
14
14
 
15
15
  // src/configs/angular.ts
16
16
  var SUPPORTED_ANGULAR_VERSIONS = [13, 14, 15, 16, 17, 18, 19, 20];
@@ -68,12 +68,14 @@ var angularUnConfig = async (context) => {
68
68
  angularEslintPluginPackageInfo,
69
69
  angularTemplateEslintPlugin,
70
70
  angularTemplateEslintPluginPackageInfo,
71
+ angularTemplateParserPackageInfo,
71
72
  extractInlineHtmlProcessor
72
73
  ] = await Promise.all([
73
74
  pluginsLoaders["@angular-eslint"](context).then(({ module }) => module),
74
75
  fetchPackageInfo("@angular-eslint/eslint-plugin"),
75
76
  pluginsLoaders["@angular-eslint/template"](context).then(({ module }) => module),
76
77
  fetchPackageInfo("@angular-eslint/eslint-plugin-template"),
78
+ fetchPackageInfo("@angular-eslint/template-parser"),
77
79
  interopDefault(import("@angular-eslint/eslint-plugin-template")).then((m) => m.processors["extract-inline-html"]).then((processor) => {
78
80
  const fixedProcessor = klona(processor);
79
81
  fixedProcessor.meta ||= {
@@ -82,16 +84,17 @@ var angularUnConfig = async (context) => {
82
84
  return fixedProcessor;
83
85
  })
84
86
  ]);
85
- if (angularEslintPluginPackageInfo?.versions.major != null && angularEslintPluginPackageInfo.versions.major !== angularVersion) {
86
- context.logger.warn(
87
- `Your \`@angular-eslint/eslint-plugin\` major version (${angularEslintPluginPackageInfo.versions.major}) might not be compatible with the configured (or detected) Angular major version (${angularVersion}).`
88
- );
89
- }
90
- if (angularTemplateEslintPluginPackageInfo?.versions.major != null && angularTemplateEslintPluginPackageInfo.versions.major !== angularVersion) {
91
- context.logger.warn(
92
- `Your \`@angular-eslint/eslint-plugin-template\` major version (${angularTemplateEslintPluginPackageInfo.versions.major}) might not be compatible with the configured (or detected) Angular major version (${angularVersion}).`
93
- );
94
- }
87
+ [
88
+ [angularEslintPluginPackageInfo, "@angular-eslint/eslint-plugin"],
89
+ [angularTemplateEslintPluginPackageInfo, "@angular-eslint/eslint-plugin-template"],
90
+ [angularTemplateParserPackageInfo, "@angular-eslint/template-parser"]
91
+ ].forEach(([packageInfo, packageName]) => {
92
+ if (packageInfo?.versions.major != null && packageInfo.versions.major !== angularVersion) {
93
+ context.logger.warn(
94
+ `Your \`${packageName}\` major version (${packageInfo.versions.major}) might not be compatible with the configured (or detected) Angular major version (${angularVersion}).`
95
+ );
96
+ }
97
+ });
95
98
  const angularEslintPluginRules = Object.keys(angularEslintPlugin?.rules || {});
96
99
  const getAngularEslintPluginRuleSeverity = (ruleName, severity) => [
97
100
  ruleName,
@@ -7,7 +7,7 @@ import {
7
7
  createConfigBuilder,
8
8
  interopDefault,
9
9
  pluginsLoaders
10
- } from "./chunk-LSLNWIER.js";
10
+ } from "./chunk-7GRRU4PU.js";
11
11
 
12
12
  // src/configs/astro.ts
13
13
  var DEFAULT_ASTRO_FILES = [GLOB_ASTRO];
@@ -61,7 +61,7 @@ var astroUnConfig = async (context) => {
61
61
  configs: [
62
62
  configBuilder,
63
63
  ...configJsxA11y === false ? [] : await (async () => {
64
- const { jsxA11yUnConfig } = await import("./jsx-a11y-UEPJ62AD.js");
64
+ const { jsxA11yUnConfig } = await import("./jsx-a11y-MJR2L2J2.js");
65
65
  const result = await jsxA11yUnConfig(context, {
66
66
  prefix: "astro",
67
67
  options: {
@@ -2,7 +2,7 @@ import {
2
2
  RULES_TO_DISABLE_IN_TEST_FILES,
3
3
  generateConfigNoOnlyTestsBuilder,
4
4
  generateDefaultTestFiles
5
- } from "./chunk-T5HX4PC2.js";
5
+ } from "./chunk-7NLUWIPQ.js";
6
6
  import {
7
7
  ERROR,
8
8
  GLOB_JS_TS_X_EXTENSION,
@@ -10,7 +10,7 @@ import {
10
10
  WARNING,
11
11
  assignDefaults,
12
12
  createConfigBuilder
13
- } from "./chunk-LSLNWIER.js";
13
+ } from "./chunk-7GRRU4PU.js";
14
14
 
15
15
  // src/configs/ava.ts
16
16
  var avaUnConfig = (context) => {
@@ -4,7 +4,7 @@ import {
4
4
  WARNING,
5
5
  assignDefaults,
6
6
  createConfigBuilder
7
- } from "./chunk-LSLNWIER.js";
7
+ } from "./chunk-7GRRU4PU.js";
8
8
 
9
9
  // src/configs/better-tailwind.ts
10
10
  var betterTailwindUnConfig = (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/case-police.ts
8
8
  var casePoliceUnConfig = (context) => {
@@ -6,7 +6,7 @@ import {
6
6
  createConfigBuilder,
7
7
  getKeysOfTruthyValues,
8
8
  interopDefault
9
- } from "./chunk-LSLNWIER.js";
9
+ } from "./chunk-7GRRU4PU.js";
10
10
 
11
11
  // src/configs/package-json.ts
12
12
  var DEFAULT_FILES_PACKAGE_JSON = [GLOB_PACKAGE_JSON];
@@ -198,7 +198,7 @@ import stylistic from "@stylistic/eslint-plugin";
198
198
  // package.json
199
199
  var package_default = {
200
200
  name: "eslint-config-un",
201
- version: "1.0.0-alpha.17",
201
+ version: "1.0.0-alpha.19",
202
202
  description: "A universal-ish ESLint config aiming to be reasonably strict and easily configurable.",
203
203
  keywords: [
204
204
  "eslint",
@@ -268,8 +268,8 @@ var package_default = {
268
268
  "@html-eslint/eslint-plugin": "0.42.0",
269
269
  "@html-eslint/parser": "0.42.0",
270
270
  "@stylistic/eslint-plugin": "5.1.0",
271
- "@typescript-eslint/eslint-plugin": "8.35.1",
272
- "@typescript-eslint/parser": "8.35.1",
271
+ "@typescript-eslint/eslint-plugin": "8.36.0",
272
+ "@typescript-eslint/parser": "8.36.0",
273
273
  "@vue/compiler-sfc": "3.5.17",
274
274
  consola: "3.4.2",
275
275
  debug: "4.4.1",
@@ -319,7 +319,7 @@ var package_default = {
319
319
  "read-package-up": "11.0.0",
320
320
  semver: "7.7.2",
321
321
  "type-fest": "4.41.0",
322
- "typescript-eslint": "8.35.1"
322
+ "typescript-eslint": "8.36.0"
323
323
  },
324
324
  devDependencies: {
325
325
  "@angular-eslint/eslint-plugin": "20.1.1",
@@ -377,7 +377,7 @@ var package_default = {
377
377
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
378
378
  "eslint-plugin-react-hooks": "5.2.0",
379
379
  "eslint-plugin-react-refresh": "0.4.20",
380
- "eslint-plugin-react-you-might-not-need-an-effect": "0.2.0",
380
+ "eslint-plugin-react-you-might-not-need-an-effect": "0.3.1",
381
381
  "eslint-plugin-solid": "0.14.5",
382
382
  "eslint-plugin-storybook": "9.0.15",
383
383
  "eslint-plugin-svelte": "3.10.1",
@@ -419,7 +419,7 @@ var package_default = {
419
419
  "eslint-plugin-ava": "^15.0.1",
420
420
  "eslint-plugin-better-tailwindcss": "^3.4.3",
421
421
  "eslint-plugin-case-police": "^2.0.0",
422
- "eslint-plugin-compat": "6.0.2",
422
+ "eslint-plugin-compat": "^6.0.2",
423
423
  "eslint-plugin-cypress": "^5.1.0",
424
424
  "eslint-plugin-de-morgan": "^1.3.0",
425
425
  "eslint-plugin-ember": "^12.5.0",
@@ -441,7 +441,7 @@ var package_default = {
441
441
  "eslint-plugin-react-compiler": "^19.1.0-rc.2",
442
442
  "eslint-plugin-react-hooks": "^5.2.0",
443
443
  "eslint-plugin-react-refresh": "^0.4.20",
444
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.2.0",
444
+ "eslint-plugin-react-you-might-not-need-an-effect": "^0.3.1",
445
445
  "eslint-plugin-solid": "^0.14.5",
446
446
  "eslint-plugin-storybook": "^9.0.15",
447
447
  "eslint-plugin-svelte": "^3.10.1",
@@ -997,16 +997,6 @@ var parsersLoaders = {
997
997
  "astro-eslint-parser",
998
998
  () => import("astro-eslint-parser")
999
999
  ),
1000
- ...genModuleLoader(
1001
- "toml-eslint-parser",
1002
- "toml-eslint-parser",
1003
- () => import("toml-eslint-parser")
1004
- ),
1005
- ...genModuleLoader(
1006
- "yaml-eslint-parser",
1007
- "yaml-eslint-parser",
1008
- () => import("yaml-eslint-parser")
1009
- ),
1010
1000
  ...genModuleLoader(
1011
1001
  "ember-eslint-parser",
1012
1002
  "ember-eslint-parser",
@@ -1017,6 +1007,16 @@ var parsersLoaders = {
1017
1007
  "svelte-eslint-parser",
1018
1008
  () => import("svelte-eslint-parser")
1019
1009
  ),
1010
+ ...genModuleLoader(
1011
+ "toml-eslint-parser",
1012
+ "toml-eslint-parser",
1013
+ () => import("toml-eslint-parser")
1014
+ ),
1015
+ ...genModuleLoader(
1016
+ "yaml-eslint-parser",
1017
+ "yaml-eslint-parser",
1018
+ () => import("yaml-eslint-parser")
1019
+ ),
1020
1020
  ...genModuleLoader("vue-eslint-parser", "vue-eslint-parser", () => import("vue-eslint-parser"))
1021
1021
  };
1022
1022
 
@@ -7,7 +7,7 @@ import {
7
7
  GLOB_YAML,
8
8
  createConfigBuilder,
9
9
  pick
10
- } from "./chunk-LSLNWIER.js";
10
+ } from "./chunk-7GRRU4PU.js";
11
11
 
12
12
  // src/configs/shared.ts
13
13
  var generateDefaultTestFiles = (extensions, { includeCypressTests } = {}) => [
@@ -4,7 +4,7 @@ import {
4
4
  assignDefaults,
5
5
  createConfigBuilder,
6
6
  memoize
7
- } from "./chunk-LSLNWIER.js";
7
+ } from "./chunk-7GRRU4PU.js";
8
8
 
9
9
  // src/configs/es.ts
10
10
  var esUnConfig = (context, customConfig) => {
@@ -3,7 +3,7 @@ import {
3
3
  GLOB_JS_TS_EXTENSION,
4
4
  assignDefaults,
5
5
  createConfigBuilder
6
- } from "./chunk-LSLNWIER.js";
6
+ } from "./chunk-7GRRU4PU.js";
7
7
 
8
8
  // src/configs/extra/cli.ts
9
9
  var DEFAULT_CLI_DIRS = ["bin", "scripts", "cli"];
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  esUnConfig
3
- } from "./chunk-XLOEIP4T.js";
3
+ } from "./chunk-QH3CXGTX.js";
4
4
  import {
5
5
  ERROR,
6
6
  OFF,
7
7
  assignDefaults,
8
8
  createConfigBuilder
9
- } from "./chunk-LSLNWIER.js";
9
+ } from "./chunk-7GRRU4PU.js";
10
10
 
11
11
  // src/configs/extra/cloudfront-functions.ts
12
12
  var genSyntaxNotAllowedErrorMessage = (syntax, isPlural = false) => `${syntax} ${isPlural ? "are" : "is"} not allowed in CloudFront functions`;
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/compat.ts
8
8
  var compatUnConfig = (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/cspell.ts
8
8
  var cspellUnConfig = (context) => {
@@ -7,7 +7,7 @@ import {
7
7
  createConfigBuilder,
8
8
  getKeysOfTruthyValues,
9
9
  interopDefault
10
- } from "./chunk-LSLNWIER.js";
10
+ } from "./chunk-7GRRU4PU.js";
11
11
 
12
12
  // src/configs/css.ts
13
13
  var cssUnConfig = async (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/css-in-js.ts
8
8
  var cssInJsUnConfig = (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  RULES_TO_DISABLE_IN_TEST_FILES,
3
3
  generateConfigNoOnlyTestsBuilder,
4
4
  generateDefaultTestFiles
5
- } from "./chunk-T5HX4PC2.js";
5
+ } from "./chunk-7NLUWIPQ.js";
6
6
  import {
7
7
  ERROR,
8
8
  GLOB_JS_TS_X_EXTENSION,
@@ -10,7 +10,7 @@ import {
10
10
  WARNING,
11
11
  assignDefaults,
12
12
  createConfigBuilder
13
- } from "./chunk-LSLNWIER.js";
13
+ } from "./chunk-7GRRU4PU.js";
14
14
 
15
15
  // src/configs/cypress.ts
16
16
  var cypressUnConfig = (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/de-morgan.ts
8
8
  var deMorganUnConfig = (context) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  DEFAULT_FILES_PACKAGE_JSON
3
- } from "./chunk-QQHUJYJX.js";
3
+ } from "./chunk-34U5NLR4.js";
4
4
  import {
5
5
  ERROR,
6
6
  assignDefaults,
7
7
  createConfigBuilder,
8
8
  interopDefault
9
- } from "./chunk-LSLNWIER.js";
9
+ } from "./chunk-7GRRU4PU.js";
10
10
 
11
11
  // src/configs/depend.ts
12
12
  var dependUnConfig = async (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  RULES_TO_DISABLE_IN_TEST_FILES,
3
3
  generateConfigNoOnlyTestsBuilder,
4
4
  generateDefaultTestFiles
5
- } from "./chunk-T5HX4PC2.js";
5
+ } from "./chunk-7NLUWIPQ.js";
6
6
  import {
7
7
  ERROR,
8
8
  GLOB_JS_TS,
@@ -11,7 +11,7 @@ import {
11
11
  WARNING,
12
12
  assignDefaults,
13
13
  createConfigBuilder
14
- } from "./chunk-LSLNWIER.js";
14
+ } from "./chunk-7GRRU4PU.js";
15
15
 
16
16
  // src/configs/ember.ts
17
17
  var GLIMMER_TEMPLATES_FILES = ["**/*.{gjs,gts}"];
@@ -4,7 +4,7 @@ import {
4
4
  OFF,
5
5
  assignDefaults,
6
6
  createConfigBuilder
7
- } from "./chunk-LSLNWIER.js";
7
+ } from "./chunk-7GRRU4PU.js";
8
8
 
9
9
  // src/configs/erasable-syntax-only.ts
10
10
  var erasableSyntaxOnlyUnConfig = (context) => {
@@ -0,0 +1,7 @@
1
+ import {
2
+ esUnConfig
3
+ } from "./chunk-QH3CXGTX.js";
4
+ import "./chunk-7GRRU4PU.js";
5
+ export {
6
+ esUnConfig
7
+ };
@@ -3,7 +3,7 @@ import {
3
3
  OFF,
4
4
  assignDefaults,
5
5
  createConfigBuilder
6
- } from "./chunk-LSLNWIER.js";
6
+ } from "./chunk-7GRRU4PU.js";
7
7
 
8
8
  // src/configs/eslint-comments.ts
9
9
  var eslintCommentsUnConfig = (context) => {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  RULES_TO_DISABLE_IN_TEST_FILES,
3
3
  generateDefaultTestFiles
4
- } from "./chunk-T5HX4PC2.js";
4
+ } from "./chunk-7NLUWIPQ.js";
5
5
  import {
6
6
  ERROR,
7
7
  GLOB_JS_TS_EXTENSION,
8
8
  OFF,
9
9
  assignDefaults,
10
10
  createConfigBuilder
11
- } from "./chunk-LSLNWIER.js";
11
+ } from "./chunk-7GRRU4PU.js";
12
12
 
13
13
  // src/configs/eslint-plugin.ts
14
14
  var eslintPluginUnConfig = (context) => {
@@ -2,7 +2,7 @@ import {
2
2
  ERROR,
3
3
  assignDefaults,
4
4
  createConfigBuilder
5
- } from "./chunk-LSLNWIER.js";
5
+ } from "./chunk-7GRRU4PU.js";
6
6
 
7
7
  // src/configs/file-progress.ts
8
8
  var fileProgressUnConfig = (context) => {
@@ -14,7 +14,7 @@ import {
14
14
  getKeysOfTruthyValues,
15
15
  pickBy,
16
16
  pluginsLoaders
17
- } from "./chunk-LSLNWIER.js";
17
+ } from "./chunk-7GRRU4PU.js";
18
18
 
19
19
  // src/configs/graphql.ts
20
20
  var graphqlUnConfig = async (context) => {
@@ -6,7 +6,7 @@ import {
6
6
  assignDefaults,
7
7
  createConfigBuilder,
8
8
  interopDefault
9
- } from "./chunk-LSLNWIER.js";
9
+ } from "./chunk-7GRRU4PU.js";
10
10
 
11
11
  // src/configs/html.ts
12
12
  var htmlUnConfig = async (context) => {
@@ -8,7 +8,7 @@ import {
8
8
  interopDefault,
9
9
  isNonEmptyArray,
10
10
  pluginsLoaders
11
- } from "./chunk-LSLNWIER.js";
11
+ } from "./chunk-7GRRU4PU.js";
12
12
 
13
13
  // src/configs/import.ts
14
14
  var importUnConfig = async (context) => {
package/dist/index.d.ts CHANGED
@@ -6,9 +6,9 @@ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
6
6
  import { detect } from 'package-manager-detector/detect';
7
7
  import * as _angular_eslint_template_parser from '@angular-eslint/template-parser';
8
8
  import * as astro_eslint_parser from 'astro-eslint-parser';
9
+ import * as svelte_eslint_parser_lib_main from 'svelte-eslint-parser/lib/main';
9
10
  import * as toml_eslint_parser from 'toml-eslint-parser';
10
11
  import * as yaml_eslint_parser from 'yaml-eslint-parser';
11
- import * as svelte_eslint_parser_lib_main from 'svelte-eslint-parser/lib/main';
12
12
  import * as vue_eslint_parser from 'vue-eslint-parser';
13
13
  import * as _html_eslint_eslint_plugin_types from '@html-eslint/eslint-plugin/types';
14
14
  import * as _stylistic_eslint_plugin from '@stylistic/eslint-plugin';
@@ -3549,14 +3549,6 @@ declare const parsersLoaders: {
3549
3549
  packageName: "vue-eslint-parser";
3550
3550
  module: typeof vue_eslint_parser | null;
3551
3551
  }>;
3552
- "svelte-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3553
- packageName: "svelte-eslint-parser";
3554
- module: typeof svelte_eslint_parser_lib_main | null;
3555
- }>;
3556
- "ember-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3557
- packageName: "ember-eslint-parser";
3558
- module: eslint__default.Linter.Parser | null;
3559
- }>;
3560
3552
  "yaml-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3561
3553
  packageName: "yaml-eslint-parser";
3562
3554
  module: typeof yaml_eslint_parser | null;
@@ -3565,6 +3557,14 @@ declare const parsersLoaders: {
3565
3557
  packageName: "toml-eslint-parser";
3566
3558
  module: typeof toml_eslint_parser | null;
3567
3559
  }>;
3560
+ "svelte-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3561
+ packageName: "svelte-eslint-parser";
3562
+ module: typeof svelte_eslint_parser_lib_main | null;
3563
+ }>;
3564
+ "ember-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3565
+ packageName: "ember-eslint-parser";
3566
+ module: eslint__default.Linter.Parser | null;
3567
+ }>;
3568
3568
  "astro-eslint-parser": (context: UnConfigContext, options?: LoadModuleOptions) => Promise<{
3569
3569
  packageName: "astro-eslint-parser";
3570
3570
  module: typeof astro_eslint_parser | null;
@@ -5752,6 +5752,13 @@ interface NodeEslintConfigOptions extends UnConfigOptions<'node'> {
5752
5752
  }
5753
5753
 
5754
5754
  interface NodeDependenciesEslintConfigOptions extends UnConfigOptions<'node-dependencies'> {
5755
+ /**
5756
+ * - `true`: enforces to use the absolute version only on `dependencies` and `devDependencies`.
5757
+ * - `'never'`: enforces not to use the absolute version.
5758
+ * - `false`: do not enforce anything.
5759
+ * @default false
5760
+ */
5761
+ enforceAbsoluteVersion?: boolean | 'never' | (GetRuleOptions<'node-dependencies', 'absolute-version'>[0] & object);
5755
5762
  }
5756
5763
 
5757
5764
  type PackageJsonCollection = 'scripts' | 'devDependencies' | 'dependencies' | 'peerDependencies' | 'peerDependenciesMeta' | 'optionalDependencies' | 'config' | 'exports' | 'overrides' | 'resolutions' | 'dependenciesMeta' | 'pnpm.allowedDeprecatedVersions' | 'pnpm.overrides' | 'pnpm.packageExtensions' | 'pnpm.patchedDependencies' | 'pnpm.peerDependencyRules.allowedVersions' | (string & {});
@@ -6735,7 +6742,6 @@ interface TsEslintConfigOptions extends UnConfigOptions<Omit<RulesRecordPartial<
6735
6742
  /**
6736
6743
  * Globs of files to allow running with the default project compiler options
6737
6744
  * despite not being matched by the project service.
6738
- * @default ['*.config.*s', '.*.*s']
6739
6745
  * @see https://typescript-eslint.io/packages/parser#allowdefaultproject
6740
6746
  */
6741
6747
  allowDefaultProject?: (ParserOptions['projectService'] & object)['allowDefaultProject'];
@@ -6850,7 +6856,13 @@ interface YamlEslintConfigOptions extends UnConfigOptions<'yml'> {
6850
6856
  };
6851
6857
  }
6852
6858
 
6859
+ type LodashMethods = 'all' | 'any' | 'assign' | 'bind' | 'capitalize' | 'castArray' | 'cloneDeep' | 'collect' | 'concat' | 'contains' | 'defaults' | 'detect' | 'drop' | 'dropRight' | 'each' | 'endsWith' | 'entries' | 'every' | 'extendOwn' | 'fill' | 'filter' | 'find' | 'findIndex' | 'first' | 'flatten' | 'foldl' | 'foldr' | 'forEach' | 'get' | 'head' | 'includes' | 'indexOf' | 'inject' | 'isArray' | 'isArrayBuffer' | 'isDate' | 'isFinite' | 'isFunction' | 'isInteger' | 'isNan' | 'isNil' | 'isNull' | 'isString' | 'isUndefined' | 'join' | 'keys' | 'last' | 'lastIndexOf' | 'map' | 'omit' | 'padEnd' | 'padStart' | 'pairs' | 'reduce' | 'reduceRight' | 'repeat' | 'replace' | 'reverse' | 'select' | 'size' | 'slice' | 'some' | 'split' | 'startsWith' | 'takeRight' | 'throttle' | 'toLower' | 'toPairs' | 'toUpper' | 'trim' | 'unionBy' | 'uniq' | 'values';
6853
6860
  interface YouDontNeedLodashUnderscoreEslintConfigOptions extends UnConfigOptions<'you-dont-need-lodash-underscore'> {
6861
+ /**
6862
+ * Lodash methods that will be exempted from the check. Will be merged with the default value.
6863
+ * @example {cloneDeep: true, omit: true, throttle: true}
6864
+ */
6865
+ ignoredMethods?: Partial<Record<LodashMethods, boolean>>;
6854
6866
  }
6855
6867
 
6856
6868
  interface EslintConfigUnOptions {
@@ -25651,10 +25663,42 @@ type ReactRefreshOnlyExportComponents$1 = []|[{
25651
25663
 
25652
25664
  interface PluginReactYouMightNotNeedAnEffect {
25653
25665
  /**
25654
- * Catch unnecessary React useEffect hooks.
25655
- * @see https://react.dev/learn/you-might-not-need-an-effect
25666
+ * Disallow chaining state changes in an effect.
25667
+ * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
25656
25668
  */
25657
- 'you-might-not-need-an-effect': [];
25669
+ 'no-chain-state-updates': [];
25670
+ /**
25671
+ * Disallow storing derived state in an effect.
25672
+ * @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
25673
+ */
25674
+ 'no-derived-state': [];
25675
+ /**
25676
+ * Disallow empty React effects.
25677
+ */
25678
+ 'no-empty-effect': [];
25679
+ /**
25680
+ * Disallow using state and an effect as an event handler.
25681
+ * @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
25682
+ */
25683
+ 'no-event-handler': [];
25684
+ /**
25685
+ * Disallow initializing state in an effect.
25686
+ */
25687
+ 'no-initialize-state': [];
25688
+ /**
25689
+ * Disallow effects that only use props.
25690
+ */
25691
+ 'no-manage-parent': [];
25692
+ /**
25693
+ * Disallow passing live state to parent components in an effect.
25694
+ * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
25695
+ */
25696
+ 'no-pass-live-state-to-parent': [];
25697
+ /**
25698
+ * Disallow resetting all state in an effect when a prop changes.
25699
+ * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
25700
+ */
25701
+ 'no-reset-all-state-when-a-prop-changes': [];
25658
25702
  }
25659
25703
 
25660
25704
  /* ======= Declarations ======= */
@@ -49023,10 +49067,42 @@ Backward pagination arguments
49023
49067
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
49024
49068
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
49025
49069
  /**
49026
- * Catch unnecessary React useEffect hooks.
49027
- * @see https://react.dev/learn/you-might-not-need-an-effect
49070
+ * Disallow chaining state changes in an effect.
49071
+ * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
49072
+ */
49073
+ 'react-you-might-not-need-an-effect/no-chain-state-updates'?: Linter.RuleEntry<[]>
49074
+ /**
49075
+ * Disallow storing derived state in an effect.
49076
+ * @see https://react.dev/learn/you-might-not-need-an-effect#updating-state-based-on-props-or-state
49077
+ */
49078
+ 'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
49079
+ /**
49080
+ * Disallow empty React effects.
49081
+ */
49082
+ 'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
49083
+ /**
49084
+ * Disallow using state and an effect as an event handler.
49085
+ * @see https://react.dev/learn/you-might-not-need-an-effect#sharing-logic-between-event-handlers
49086
+ */
49087
+ 'react-you-might-not-need-an-effect/no-event-handler'?: Linter.RuleEntry<[]>
49088
+ /**
49089
+ * Disallow initializing state in an effect.
49090
+ */
49091
+ 'react-you-might-not-need-an-effect/no-initialize-state'?: Linter.RuleEntry<[]>
49092
+ /**
49093
+ * Disallow effects that only use props.
49094
+ */
49095
+ 'react-you-might-not-need-an-effect/no-manage-parent'?: Linter.RuleEntry<[]>
49096
+ /**
49097
+ * Disallow passing live state to parent components in an effect.
49098
+ * @see https://react.dev/learn/you-might-not-need-an-effect#notifying-parent-components-about-state-changes
49099
+ */
49100
+ 'react-you-might-not-need-an-effect/no-pass-live-state-to-parent'?: Linter.RuleEntry<[]>
49101
+ /**
49102
+ * Disallow resetting all state in an effect when a prop changes.
49103
+ * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
49028
49104
  */
49029
- 'react-you-might-not-need-an-effect/you-might-not-need-an-effect'?: Linter.RuleEntry<[]>
49105
+ 'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
49030
49106
  /**
49031
49107
  * Enforces consistent naming for boolean props
49032
49108
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md