@isentinel/eslint-config 6.0.0-beta.23 → 6.0.0-beta.24

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.mjs CHANGED
@@ -9,7 +9,7 @@ import path from "node:path";
9
9
  import { existsSync, readFileSync } from "fs";
10
10
  import { execSync } from "node:child_process";
11
11
  //#region package.json
12
- var version = "6.0.0-beta.23";
12
+ var version = "6.0.0-beta.24";
13
13
  var package_default = {
14
14
  name: "@isentinel/eslint-config",
15
15
  version,
@@ -63,7 +63,7 @@ var package_default = {
63
63
  "check:extensions": "node scripts/check-package-extensions.ts && node scripts/gen-package-extensions.ts --check",
64
64
  "check:published": "node scripts/check-published-extensions.ts",
65
65
  "dev": "npx @eslint/config-inspector --config eslint-inspector.config.ts",
66
- "gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/gen-package-extensions.ts",
66
+ "gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/stylisticgen.ts && node scripts/gen-package-extensions.ts",
67
67
  "postgen": "echo 'Generation complete!'",
68
68
  "lint": "isentinel-lint",
69
69
  "oxlint": "oxlint",
package/dist/lint-cli.mjs CHANGED
@@ -36,7 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  }) : target, mod));
37
37
  //#endregion
38
38
  //#region package.json
39
- var version = "6.0.0-beta.23";
39
+ var version = "6.0.0-beta.24";
40
40
  //#endregion
41
41
  //#region src/lint-cli/lib/cli/types.ts
42
42
  /**
package/dist/oxlint.mjs CHANGED
@@ -3077,6 +3077,107 @@ const defaultPluginRenaming = {
3077
3077
  "yml": "yaml"
3078
3078
  };
3079
3079
  //#endregion
3080
+ //#region src/rules/stylistic-generated.ts
3081
+ const stylisticRuleNames = /* @__PURE__ */ new Set([
3082
+ "array-bracket-newline",
3083
+ "array-bracket-spacing",
3084
+ "array-element-newline",
3085
+ "arrow-parens",
3086
+ "arrow-spacing",
3087
+ "block-spacing",
3088
+ "brace-style",
3089
+ "comma-dangle",
3090
+ "comma-spacing",
3091
+ "comma-style",
3092
+ "computed-property-spacing",
3093
+ "curly-newline",
3094
+ "dot-location",
3095
+ "eol-last",
3096
+ "exp-jsx-props-style",
3097
+ "exp-list-style",
3098
+ "function-call-argument-newline",
3099
+ "function-call-spacing",
3100
+ "function-paren-newline",
3101
+ "generator-star-spacing",
3102
+ "implicit-arrow-linebreak",
3103
+ "indent",
3104
+ "indent-binary-ops",
3105
+ "jsx-child-element-spacing",
3106
+ "jsx-closing-bracket-location",
3107
+ "jsx-closing-tag-location",
3108
+ "jsx-curly-brace-presence",
3109
+ "jsx-curly-newline",
3110
+ "jsx-curly-spacing",
3111
+ "jsx-equals-spacing",
3112
+ "jsx-first-prop-new-line",
3113
+ "jsx-function-call-newline",
3114
+ "jsx-indent",
3115
+ "jsx-indent-props",
3116
+ "jsx-max-props-per-line",
3117
+ "jsx-newline",
3118
+ "jsx-one-expression-per-line",
3119
+ "jsx-pascal-case",
3120
+ "jsx-props-no-multi-spaces",
3121
+ "jsx-quotes",
3122
+ "jsx-self-closing-comp",
3123
+ "jsx-sort-props",
3124
+ "jsx-tag-spacing",
3125
+ "jsx-wrap-multilines",
3126
+ "key-spacing",
3127
+ "keyword-spacing",
3128
+ "line-comment-position",
3129
+ "linebreak-style",
3130
+ "lines-around-comment",
3131
+ "lines-between-class-members",
3132
+ "max-len",
3133
+ "max-statements-per-line",
3134
+ "member-delimiter-style",
3135
+ "multiline-comment-style",
3136
+ "multiline-ternary",
3137
+ "new-parens",
3138
+ "newline-per-chained-call",
3139
+ "no-confusing-arrow",
3140
+ "no-extra-parens",
3141
+ "no-extra-semi",
3142
+ "no-floating-decimal",
3143
+ "no-mixed-operators",
3144
+ "no-mixed-spaces-and-tabs",
3145
+ "no-multi-spaces",
3146
+ "no-multiple-empty-lines",
3147
+ "no-tabs",
3148
+ "no-trailing-spaces",
3149
+ "no-whitespace-before-property",
3150
+ "nonblock-statement-body-position",
3151
+ "object-curly-newline",
3152
+ "object-curly-spacing",
3153
+ "object-property-newline",
3154
+ "one-var-declaration-per-line",
3155
+ "operator-linebreak",
3156
+ "padded-blocks",
3157
+ "padding-line-between-statements",
3158
+ "quote-props",
3159
+ "quotes",
3160
+ "rest-spread-spacing",
3161
+ "semi",
3162
+ "semi-spacing",
3163
+ "semi-style",
3164
+ "space-before-blocks",
3165
+ "space-before-function-paren",
3166
+ "space-in-parens",
3167
+ "space-infix-ops",
3168
+ "space-unary-ops",
3169
+ "spaced-comment",
3170
+ "switch-colon-spacing",
3171
+ "template-curly-spacing",
3172
+ "template-tag-spacing",
3173
+ "type-annotation-spacing",
3174
+ "type-generic-spacing",
3175
+ "type-named-tuple-spacing",
3176
+ "wrap-iife",
3177
+ "wrap-regex",
3178
+ "yield-star-spacing"
3179
+ ]);
3180
+ //#endregion
3080
3181
  //#region src/oxlint/configs/oxfmt.ts
3081
3182
  const require$1 = createRequire(import.meta.url);
3082
3183
  function oxlintOxfmt(options) {
@@ -3088,11 +3189,9 @@ function oxlintOxfmt(options) {
3088
3189
  const prettierRuleNames = Object.keys(renameRules(configPrettierRules, defaultPluginRenaming));
3089
3190
  for (const key of prettierRuleNames) if (!rulesToIgnore.has(key)) canonicalDisables[key] = "off";
3090
3191
  const { jsPluginRules, jsPlugins, nativeRules } = splitOxlintRules(canonicalDisables);
3091
- const stylisticPlugin = require$1("@stylistic/eslint-plugin");
3092
- const stylisticRules = isRecord(stylisticPlugin) && isRecord(stylisticPlugin["rules"]) ? stylisticPlugin["rules"] : {};
3093
3192
  for (const [rule, value] of Object.entries(canonicalDisables)) {
3094
3193
  if (!rule.startsWith("style/") || jsPluginRules[rule] !== void 0) continue;
3095
- if (stylisticRules[rule.slice(6)] !== void 0) jsPluginRules[rule] = value;
3194
+ if (stylisticRuleNames.has(rule.slice(6))) jsPluginRules[rule] = value;
3096
3195
  }
3097
3196
  if (!jsPlugins.some((plugin) => typeof plugin !== "string" && plugin.name === "style")) jsPlugins.push({
3098
3197
  name: "style",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "6.0.0-beta.23",
3
+ "version": "6.0.0-beta.24",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -142,7 +142,7 @@
142
142
  "typescript": "6.0.3",
143
143
  "unplugin-unused": "0.5.7",
144
144
  "vitest": "4.1.10",
145
- "@isentinel/eslint-config": "6.0.0-beta.23"
145
+ "@isentinel/eslint-config": "6.0.0-beta.24"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "@vitest/eslint-plugin": "^1.6.4",
@@ -201,7 +201,7 @@
201
201
  "check:extensions": "node scripts/check-package-extensions.ts && node scripts/gen-package-extensions.ts --check",
202
202
  "check:published": "node scripts/check-published-extensions.ts",
203
203
  "dev": "npx @eslint/config-inspector --config eslint-inspector.config.ts",
204
- "gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/gen-package-extensions.ts",
204
+ "gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/stylisticgen.ts && node scripts/gen-package-extensions.ts",
205
205
  "postgen": "echo 'Generation complete!'",
206
206
  "lint": "isentinel-lint",
207
207
  "oxlint": "oxlint",