@kitschpatrol/eslint-config 5.4.4 → 5.5.0

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/bin/cli.js CHANGED
@@ -5138,7 +5138,7 @@ var Yargs = YargsFactory(esm_default);
5138
5138
  var yargs_default = Yargs;
5139
5139
 
5140
5140
  // ../../package.json
5141
- var version = "5.4.4";
5141
+ var version = "5.5.0";
5142
5142
 
5143
5143
  // ../../src/execa-utilities.ts
5144
5144
  function isErrorExecaError(error) {
package/dist/index.d.ts CHANGED
@@ -1438,11 +1438,11 @@ interface RuleOptions {
1438
1438
  * Enforce that package.json has all properties required by the npm spec
1439
1439
  * @deprecated
1440
1440
  */
1441
- 'json-package/valid-package-def'?: Linter.RuleEntry<[]>
1441
+ 'json-package/valid-package-def'?: Linter.RuleEntry<JsonPackageValidPackageDef>
1442
1442
  /**
1443
1443
  * Enforce that package.json has all properties required by the npm spec
1444
1444
  */
1445
- 'json-package/valid-package-definition'?: Linter.RuleEntry<[]>
1445
+ 'json-package/valid-package-definition'?: Linter.RuleEntry<JsonPackageValidPackageDefinition>
1446
1446
  /**
1447
1447
  * Enforce that if repository directory is specified, it matches the path to the package.json file
1448
1448
  */
@@ -8970,6 +8970,22 @@ type JsonPackageRestrictDependencyRanges =
8970
8970
  ]
8971
8971
  // ----- json-package/sort-collections -----
8972
8972
  type JsonPackageSortCollections = [] | [string[]]
8973
+ // ----- json-package/valid-package-def -----
8974
+ type JsonPackageValidPackageDef =
8975
+ | []
8976
+ | [
8977
+ {
8978
+ ignoreProperties?: string[]
8979
+ },
8980
+ ]
8981
+ // ----- json-package/valid-package-definition -----
8982
+ type JsonPackageValidPackageDefinition =
8983
+ | []
8984
+ | [
8985
+ {
8986
+ ignoreProperties?: string[]
8987
+ },
8988
+ ]
8973
8989
  // ----- json/array-bracket-newline -----
8974
8990
  type JsonArrayBracketNewline =
8975
8991
  | []
@@ -24398,6 +24414,8 @@ declare const GLOB_JSONC = "**/*.jsonc";
24398
24414
  declare const GLOB_MARKDOWN = "**/*.md";
24399
24415
  declare const GLOB_MDX = "**/*.mdx";
24400
24416
  declare const GLOB_SVELTE = "**/*.svelte";
24417
+ declare const GLOB_SVELTE_TS = "**/*.svelte.ts";
24418
+ declare const GLOB_SVELTE_JS = "**/*.svelte.js";
24401
24419
  declare const GLOB_YAML = "**/*.y?(a)ml";
24402
24420
  declare const GLOB_TOML = "**/*.toml";
24403
24421
  declare const GLOB_XML = "**/*.xml";
@@ -24499,4 +24517,4 @@ declare function generatePerfectionistSortConfig(strings: string[], matchType?:
24499
24517
  };
24500
24518
  };
24501
24519
 
24502
- export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_JS, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_MDX_CODE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsOverridesEmbeddedScripts, type OptionsTypeAware, type ResolvedOptions, type Rules, type TypedFlatConfigItem, astro, combine, eslintConfig as default, defaultPluginRenaming, disables, eslintConfig, generatePerfectionistSortConfig, getLanguageOptions, getOverrides, getOverridesEmbeddedScripts, html, ignores, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, js, json, jsx, md, mdx, react, renamePluginInConfigs, renameRules, resolveSubOptions, svelte, test, toArray, toml, ts, tsx, yaml };
24520
+ export { type Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_JS, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_MDX_CODE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVELTE_JS, GLOB_SVELTE_TS, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_XML, GLOB_YAML, type OptionsConfig, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsOverridesEmbeddedScripts, type OptionsTypeAware, type ResolvedOptions, type Rules, type TypedFlatConfigItem, astro, combine, eslintConfig as default, defaultPluginRenaming, disables, eslintConfig, generatePerfectionistSortConfig, getLanguageOptions, getOverrides, getOverridesEmbeddedScripts, html, ignores, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, js, json, jsx, md, mdx, react, renamePluginInConfigs, renameRules, resolveSubOptions, svelte, test, toArray, toml, ts, tsx, yaml };
package/dist/index.js CHANGED
@@ -21,6 +21,8 @@ var GLOB_JSONC = "**/*.jsonc";
21
21
  var GLOB_MARKDOWN = "**/*.md";
22
22
  var GLOB_MDX = "**/*.mdx";
23
23
  var GLOB_SVELTE = "**/*.svelte";
24
+ var GLOB_SVELTE_TS = "**/*.svelte.ts";
25
+ var GLOB_SVELTE_JS = "**/*.svelte.js";
24
26
  var GLOB_YAML = "**/*.y?(a)ml";
25
27
  var GLOB_TOML = "**/*.toml";
26
28
  var GLOB_XML = "**/*.xml";
@@ -47,6 +49,8 @@ var GLOB_ALL_SRC = [
47
49
  GLOB_MARKDOWN,
48
50
  GLOB_MDX,
49
51
  GLOB_SVELTE,
52
+ GLOB_SVELTE_JS,
53
+ GLOB_SVELTE_TS,
50
54
  GLOB_YAML,
51
55
  GLOB_XML,
52
56
  GLOB_HTML
@@ -777,7 +781,10 @@ var jsonPackageRecommendedRules = {
777
781
  "json-package/unique-dependencies": "error",
778
782
  "json-package/valid-local-dependency": "error",
779
783
  "json-package/valid-name": "error",
780
- "json-package/valid-package-definition": "error",
784
+ "json-package/valid-package-definition": [
785
+ "error",
786
+ { ignoreProperties: ["local-dependency", "name", "repository-directory", "version"] }
787
+ ],
781
788
  "json-package/valid-repository-directory": "error",
782
789
  "json-package/valid-version": "error"
783
790
  // End expansion
@@ -3761,9 +3768,11 @@ async function react(options = {}) {
3761
3768
  }
3762
3769
 
3763
3770
  // src/configs/svelte.ts
3771
+ import path2 from "path";
3772
+ import process4 from "process";
3764
3773
  async function svelte(options = {}) {
3765
3774
  const { overrides = {} } = options;
3766
- const files = [GLOB_SVELTE];
3775
+ const files = [GLOB_SVELTE, GLOB_SVELTE_JS, GLOB_SVELTE_TS];
3767
3776
  const [pluginSvelte, parserSvelte] = await Promise.all([
3768
3777
  interopDefault(import("eslint-plugin-svelte")),
3769
3778
  interopDefault(import("svelte-eslint-parser"))
@@ -3783,13 +3792,17 @@ async function svelte(options = {}) {
3783
3792
  parser: parserSvelte,
3784
3793
  parserOptions: {
3785
3794
  extraFileExtensions: [".svelte"],
3786
- parser: tsParser
3795
+ parser: tsParser,
3787
3796
  // TODO js version?
3797
+ project: path2.join(process4.cwd(), "tsconfig.json"),
3798
+ // Not sure why this isn't inherited
3799
+ svelteConfig: path2.join(process4.cwd(), "svelte.config.js")
3788
3800
  }
3789
3801
  },
3790
3802
  name: "kp/svelte/rules",
3791
3803
  processor: pluginSvelte.processors[".svelte"],
3792
3804
  rules: {
3805
+ ...sharedScriptConfig.rules,
3793
3806
  ...svelteRecommendedRules,
3794
3807
  "import/no-mutable-exports": "off",
3795
3808
  // Allow prop export
@@ -4046,6 +4059,8 @@ export {
4046
4059
  GLOB_SRC_EXT,
4047
4060
  GLOB_STYLE,
4048
4061
  GLOB_SVELTE,
4062
+ GLOB_SVELTE_JS,
4063
+ GLOB_SVELTE_TS,
4049
4064
  GLOB_SVG,
4050
4065
  GLOB_TESTS,
4051
4066
  GLOB_TOML,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "5.4.4",
3
+ "version": "5.5.0",
4
4
  "description": "ESLint configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -42,13 +42,13 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
45
- "@eslint-react/eslint-plugin": "^1.51.2",
45
+ "@eslint-react/eslint-plugin": "^1.51.3",
46
46
  "@html-eslint/eslint-plugin": "^0.41.0",
47
47
  "@html-eslint/parser": "^0.41.0",
48
48
  "@pinojs/json-colorizer": "^4.0.0",
49
- "@typescript-eslint/eslint-plugin": "^8.33.1",
50
- "@typescript-eslint/parser": "^8.33.1",
51
- "@vitest/eslint-plugin": "^1.2.1",
49
+ "@typescript-eslint/eslint-plugin": "^8.34.0",
50
+ "@typescript-eslint/parser": "^8.34.0",
51
+ "@vitest/eslint-plugin": "^1.2.2",
52
52
  "astro-eslint-parser": "^1.2.2",
53
53
  "eslint": "^9.28.0",
54
54
  "eslint-config-flat-gitignore": "^2.1.0",
@@ -65,10 +65,10 @@
65
65
  "eslint-plugin-mdx": "^3.4.2",
66
66
  "eslint-plugin-n": "^17.19.0",
67
67
  "eslint-plugin-no-only-tests": "^3.3.0",
68
- "eslint-plugin-package-json": "^0.33.2",
68
+ "eslint-plugin-package-json": "^0.35.1",
69
69
  "eslint-plugin-perfectionist": "^4.14.0",
70
70
  "eslint-plugin-regexp": "^2.9.0",
71
- "eslint-plugin-svelte": "^3.9.1",
71
+ "eslint-plugin-svelte": "^3.9.2",
72
72
  "eslint-plugin-toml": "^0.12.0",
73
73
  "eslint-plugin-unicorn": "^59.0.1",
74
74
  "eslint-plugin-yml": "^1.18.0",
@@ -92,7 +92,7 @@
92
92
  "eslint-config-xo-typescript": "^8.0.1",
93
93
  "eslint-typegen": "^2.2.0",
94
94
  "globby": "^14.1.0",
95
- "svelte": "^5.33.18",
95
+ "svelte": "^5.33.19",
96
96
  "tsup": "^8.5.0"
97
97
  },
98
98
  "engines": {