@jsse/eslint-config 0.6.1 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @jsse/eslint-config
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - lots of tiny changes and fixes
8
+
9
+ ## 0.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - fix `no-restricted-syntax` settings
14
+
3
15
  ## 0.6.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -62,12 +62,7 @@ module.exports = require("@jsse/eslint-config").jsse({
62
62
  For example:
63
63
 
64
64
  ```json
65
- {
66
- "scripts": {
67
- "lint": "eslint .",
68
- "lint:fix": "eslint . --fix"
69
- }
70
- }
65
+ { "scripts": { "lint": "eslint .", "lint:fix": "eslint . --fix" } }
71
66
  ```
72
67
 
73
68
  ### Type Aware Rules
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as DEBUG$1, t as VERSION } from "./version-C8gdC_Ss.js";
1
+ import { r as VERSION, t as DEBUG$1 } from "./const-DzlQZWYA.js";
2
2
  import process$1 from "node:process";
3
3
  import fs from "node:fs";
4
4
  //#region node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
@@ -1,4 +1,7 @@
1
1
  import process from "node:process";
2
+ //#region src/_generated/version.ts
3
+ const VERSION = "0.7.0";
4
+ //#endregion
2
5
  //#region src/const.ts
3
6
  /**
4
7
  * CONSTANTS LISTS AND REFERENCES OH MY!
@@ -33,7 +36,4 @@ const SLOW_RULES = [
33
36
  "unicorn/no-unnecessary-polyfills"
34
37
  ];
35
38
  //#endregion
36
- //#region src/generated/version.ts
37
- const VERSION = "0.6.1";
38
- //#endregion
39
- export { DEBUG as n, SLOW_RULES as r, VERSION as t };
39
+ export { SLOW_RULES as n, VERSION as r, DEBUG as t };
package/dist/index.d.ts CHANGED
@@ -17,7 +17,10 @@ import * as eslint_plugin_react0 from "eslint-plugin-react";
17
17
  import * as eslint from "eslint";
18
18
  import { Linter, Rule } from "eslint";
19
19
 
20
- //#region src/generated/dts/builtins.d.ts
20
+ //#region src/_generated/version.d.ts
21
+ declare const VERSION = "0.7.0";
22
+ //#endregion
23
+ //#region src/_generated/dts/builtins.d.ts
21
24
  interface BuiltinsRuleOptions {
22
25
  /**
23
26
  * Enforce getter and setter pairs in objects and classes
@@ -2291,10 +2294,10 @@ type MaxParams = [] | [number | {
2291
2294
  type MaxStatements = [] | [number | {
2292
2295
  maximum?: number;
2293
2296
  max?: number;
2294
- }] | [(number | {
2297
+ }] | [number | {
2295
2298
  maximum?: number;
2296
2299
  max?: number;
2297
- }), {
2300
+ }, {
2298
2301
  ignoreTopLevelFunctions?: boolean;
2299
2302
  }]; // ----- max-statements-per-line -----
2300
2303
  type MaxStatementsPerLine = [] | [{
@@ -2878,7 +2881,7 @@ type Yoda = [] | ["always" | "never"] | ["always" | "never", {
2878
2881
  onlyEquality?: boolean;
2879
2882
  }];
2880
2883
  //#endregion
2881
- //#region src/generated/dts/antfu.d.ts
2884
+ //#region src/_generated/dts/antfu.d.ts
2882
2885
  interface AntfuRuleOptions {
2883
2886
  /**
2884
2887
  * Having line breaks styles to object, array and named imports
@@ -2969,7 +2972,7 @@ type AntfuIndentUnindent = [] | [{
2969
2972
  tags?: string[];
2970
2973
  }];
2971
2974
  //#endregion
2972
- //#region src/generated/dts/command.d.ts
2975
+ //#region src/_generated/dts/command.d.ts
2973
2976
  interface CommandRuleOptions {
2974
2977
  /**
2975
2978
  * Comment-as-command for one-off codemod with ESLint
@@ -2978,7 +2981,7 @@ interface CommandRuleOptions {
2978
2981
  "command/command"?: Linter.RuleEntry<[]>;
2979
2982
  }
2980
2983
  //#endregion
2981
- //#region src/generated/dts/de-morgan.d.ts
2984
+ //#region src/_generated/dts/de-morgan.d.ts
2982
2985
  interface DeMorganRuleOptions {
2983
2986
  /**
2984
2987
  * Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
@@ -2992,7 +2995,7 @@ interface DeMorganRuleOptions {
2992
2995
  "de-morgan/no-negated-disjunction"?: Linter.RuleEntry<[]>;
2993
2996
  }
2994
2997
  //#endregion
2995
- //#region src/generated/dts/eslint-comments.d.ts
2998
+ //#region src/_generated/dts/eslint-comments.d.ts
2996
2999
  interface EslintCommentsRuleOptions {
2997
3000
  /**
2998
3001
  * require a `eslint-enable` comment for every `eslint-disable` comment
@@ -3054,10 +3057,10 @@ type EslintCommentsRequireDescription = [] | [{
3054
3057
  ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
3055
3058
  }];
3056
3059
  //#endregion
3057
- //#region src/generated/dts/ignores.d.ts
3060
+ //#region src/_generated/dts/ignores.d.ts
3058
3061
  interface IgnoresRuleOptions {}
3059
3062
  //#endregion
3060
- //#region src/generated/dts/imports.d.ts
3063
+ //#region src/_generated/dts/imports.d.ts
3061
3064
  interface ImportsRuleOptions {
3062
3065
  /**
3063
3066
  * Enforce or ban the use of inline type-only markers for named imports.
@@ -3121,7 +3124,7 @@ type ImportPreferDefaultExport$1 = [] | [{
3121
3124
  target?: "single" | "any";
3122
3125
  }];
3123
3126
  //#endregion
3124
- //#region src/generated/dts/javascript.d.ts
3127
+ //#region src/_generated/dts/javascript.d.ts
3125
3128
  interface JavascriptRuleOptions$1 {
3126
3129
  /**
3127
3130
  * Disallow unused variables
@@ -3169,7 +3172,7 @@ type UnusedImportsNoUnusedVars = [] | [("all" | "local") | {
3169
3172
  varsIgnorePattern?: string;
3170
3173
  }];
3171
3174
  //#endregion
3172
- //#region src/generated/dts/jsdoc.d.ts
3175
+ //#region src/_generated/dts/jsdoc.d.ts
3173
3176
  interface JsdocRuleOptions {
3174
3177
  /**
3175
3178
  * Checks that `@access` tags have a valid value.
@@ -4044,7 +4047,7 @@ type JsdocValidTypes = [] | [{
4044
4047
  allowEmptyNamepaths?: boolean;
4045
4048
  }];
4046
4049
  //#endregion
4047
- //#region src/generated/dts/jsonc.d.ts
4050
+ //#region src/_generated/dts/jsonc.d.ts
4048
4051
  interface JsoncRuleOptions {
4049
4052
  /**
4050
4053
  * enforce line breaks after opening and before closing array brackets
@@ -4518,7 +4521,7 @@ type JsoncSpaceUnaryOps = [] | [{
4518
4521
  };
4519
4522
  }];
4520
4523
  //#endregion
4521
- //#region src/generated/dts/markdown.d.ts
4524
+ //#region src/_generated/dts/markdown.d.ts
4522
4525
  interface MarkdownRuleOptions {
4523
4526
  /**
4524
4527
  * Require languages for fenced code blocks
@@ -4669,7 +4672,7 @@ type MarkdownTableColumnCount = [] | [{
4669
4672
  checkMissingCells?: boolean;
4670
4673
  }];
4671
4674
  //#endregion
4672
- //#region src/generated/dts/n.d.ts
4675
+ //#region src/_generated/dts/n.d.ts
4673
4676
  interface NRuleOptions {
4674
4677
  /**
4675
4678
  * require `return` statements after callbacks
@@ -5129,7 +5132,7 @@ type NShebang = [] | [{
5129
5132
  };
5130
5133
  }];
5131
5134
  //#endregion
5132
- //#region src/generated/dts/no-only-tests.d.ts
5135
+ //#region src/_generated/dts/no-only-tests.d.ts
5133
5136
  interface NoOnlyTestsRuleOptions {
5134
5137
  /**
5135
5138
  * disallow .only blocks in tests
@@ -5146,7 +5149,7 @@ type NoOnlyTestsNoOnlyTests = [] | [{
5146
5149
  fix?: boolean;
5147
5150
  }];
5148
5151
  //#endregion
5149
- //#region src/generated/dts/perfectionist.d.ts
5152
+ //#region src/_generated/dts/perfectionist.d.ts
5150
5153
  interface PerfectionistRuleOptions {
5151
5154
  /**
5152
5155
  * Enforce sorted arrays before include method.
@@ -7653,7 +7656,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
7653
7656
  partitionByNewLine?: boolean;
7654
7657
  }];
7655
7658
  //#endregion
7656
- //#region src/generated/dts/pnpm.d.ts
7659
+ //#region src/_generated/dts/pnpm.d.ts
7657
7660
  interface PnpmRuleOptions {
7658
7661
  /**
7659
7662
  * Enforce using "catalog:" in `package.json`
@@ -7725,10 +7728,10 @@ type PnpmYamlNoDuplicateCatalogItem = [] | [{
7725
7728
  checkDuplicates?: "name-only" | "exact-version";
7726
7729
  }];
7727
7730
  //#endregion
7728
- //#region src/generated/dts/prettier.d.ts
7731
+ //#region src/_generated/dts/prettier.d.ts
7729
7732
  interface PrettierRuleOptions {}
7730
7733
  //#endregion
7731
- //#region src/generated/dts/react.d.ts
7734
+ //#region src/_generated/dts/react.d.ts
7732
7735
  interface ReactRuleOptions {
7733
7736
  /**
7734
7737
  * Verifies that automatic effect dependencies are compiled if opted-in
@@ -8856,7 +8859,7 @@ type ReactStylePropObject = [] | [{
8856
8859
  [k: string]: unknown | undefined;
8857
8860
  }];
8858
8861
  //#endregion
8859
- //#region src/generated/dts/react-hooks.d.ts
8862
+ //#region src/_generated/dts/react-hooks.d.ts
8860
8863
  interface ReactHooksRuleOptions {
8861
8864
  /**
8862
8865
  * Verifies that automatic effect dependencies are compiled if opted-in
@@ -9070,13 +9073,13 @@ type ReactHooksVoidUseMemo = [] | [{
9070
9073
  [k: string]: unknown | undefined;
9071
9074
  }];
9072
9075
  //#endregion
9073
- //#region src/generated/dts/sort-package-json.d.ts
9076
+ //#region src/_generated/dts/sort-package-json.d.ts
9074
9077
  interface SortPackageJsonRuleOptions {}
9075
9078
  //#endregion
9076
- //#region src/generated/dts/sort-tsconfig.d.ts
9079
+ //#region src/_generated/dts/sort-tsconfig.d.ts
9077
9080
  interface SortTsconfigRuleOptions {}
9078
9081
  //#endregion
9079
- //#region src/generated/dts/stylistic.d.ts
9082
+ //#region src/_generated/dts/stylistic.d.ts
9080
9083
  interface StylisticRuleOptions {
9081
9084
  /**
9082
9085
  * Enforce linebreaks after opening and before closing array brackets
@@ -10739,7 +10742,7 @@ type StylisticYieldStarSpacing = [] | [("before" | "after" | "both" | "neither")
10739
10742
  after?: boolean;
10740
10743
  }];
10741
10744
  //#endregion
10742
- //#region src/generated/dts/toml.d.ts
10745
+ //#region src/_generated/dts/toml.d.ts
10743
10746
  interface TomlRuleOptions {
10744
10747
  /**
10745
10748
  * enforce linebreaks after opening and before closing array brackets
@@ -10985,7 +10988,7 @@ type TomlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
10985
10988
  }]; // ----- toml/table-bracket-spacing -----
10986
10989
  type TomlTableBracketSpacing = [] | ["always" | "never"];
10987
10990
  //#endregion
10988
- //#region src/generated/dts/tsdoc.d.ts
10991
+ //#region src/_generated/dts/tsdoc.d.ts
10989
10992
  interface TsdocRuleOptions {
10990
10993
  /**
10991
10994
  * Validates that TypeScript documentation comments conform to the TSDoc standard
@@ -10994,7 +10997,7 @@ interface TsdocRuleOptions {
10994
10997
  "tsdoc/syntax"?: Linter.RuleEntry<[]>;
10995
10998
  }
10996
10999
  //#endregion
10997
- //#region src/generated/dts/typescript.d.ts
11000
+ //#region src/_generated/dts/typescript.d.ts
10998
11001
  interface TypescriptRuleOptions {
10999
11002
  /**
11000
11003
  * Require that function overload signatures be consecutive
@@ -12630,7 +12633,7 @@ type ImportPreferDefaultExport = [] | [{
12630
12633
  target?: "single" | "any";
12631
12634
  }];
12632
12635
  //#endregion
12633
- //#region src/generated/dts/unicorn.d.ts
12636
+ //#region src/_generated/dts/unicorn.d.ts
12634
12637
  interface UnicornRuleOptions {
12635
12638
  /**
12636
12639
  * Improve regexes by making them shorter, consistent, and safer.
@@ -13558,7 +13561,7 @@ type UnicornTextEncodingIdentifierCase = [] | [{
13558
13561
  withDash?: boolean;
13559
13562
  }];
13560
13563
  //#endregion
13561
- //#region src/generated/dts/vitest.d.ts
13564
+ //#region src/_generated/dts/vitest.d.ts
13562
13565
  interface VitestRuleOptions {
13563
13566
  /**
13564
13567
  * enforce using `.each` or `.for` consistently
@@ -14060,7 +14063,7 @@ type VitestValidTitle = [] | [{
14060
14063
  };
14061
14064
  }];
14062
14065
  //#endregion
14063
- //#region src/generated/dts/yml.d.ts
14066
+ //#region src/_generated/dts/yml.d.ts
14064
14067
  interface YmlRuleOptions {
14065
14068
  /**
14066
14069
  * require or disallow block style mappings.
@@ -14395,7 +14398,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
14395
14398
  markers?: string[];
14396
14399
  }];
14397
14400
  //#endregion
14398
- //#region src/generated/rule-options.d.ts
14401
+ //#region src/_generated/rule-options.d.ts
14399
14402
  type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
14400
14403
  //#endregion
14401
14404
  //#region src/types.d.ts
@@ -14696,9 +14699,6 @@ declare const SLOW_RULES: RuleName[];
14696
14699
  declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
14697
14700
  declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
14698
14701
  type DefineConfig = typeof defineConfig;
14699
- //#endregion
14700
- //#region src/generated/version.d.ts
14701
- declare const VERSION = "0.6.1";
14702
14702
  declare namespace globs_d_exports {
14703
14703
  export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
14704
14704
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
2
- import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-C8gdC_Ss.js";
2
+ import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-DzlQZWYA.js";
3
3
  import { builtinModules, createRequire } from "node:module";
4
4
  import process$1 from "node:process";
5
5
  import fs, { realpathSync, statSync } from "node:fs";
@@ -11174,89 +11174,6 @@ function typescriptRulesTypeAware() {
11174
11174
  "@typescript-eslint/no-unnecessary-qualifier": "error",
11175
11175
  "@typescript-eslint/no-redundant-type-constituents": "warn",
11176
11176
  "@typescript-eslint/require-array-sort-compare": ["error", { ignoreStringArrays: true }],
11177
- "@typescript-eslint/naming-convention": [
11178
- "error",
11179
- {
11180
- selector: ["variable"],
11181
- modifiers: ["global"],
11182
- format: [
11183
- "camelCase",
11184
- "snake_case",
11185
- "UPPER_CASE",
11186
- "PascalCase"
11187
- ],
11188
- leadingUnderscore: "allowSingleOrDouble",
11189
- trailingUnderscore: "allow",
11190
- filter: {
11191
- regex: "[- ]",
11192
- match: false
11193
- }
11194
- },
11195
- {
11196
- selector: [
11197
- "classProperty",
11198
- "objectLiteralProperty",
11199
- "typeProperty",
11200
- "classMethod",
11201
- "objectLiteralMethod",
11202
- "typeMethod",
11203
- "accessor",
11204
- "enumMember"
11205
- ],
11206
- format: null,
11207
- modifiers: ["requiresQuotes"]
11208
- },
11209
- {
11210
- selector: [
11211
- "variable",
11212
- "function",
11213
- "classProperty",
11214
- "objectLiteralProperty",
11215
- "parameterProperty",
11216
- "classMethod",
11217
- "objectLiteralMethod",
11218
- "typeMethod",
11219
- "accessor"
11220
- ],
11221
- format: [
11222
- "camelCase",
11223
- "snake_case",
11224
- "PascalCase"
11225
- ],
11226
- leadingUnderscore: "allowSingleOrDouble",
11227
- trailingUnderscore: "allow",
11228
- filter: {
11229
- regex: "^[0-9]|[- ]|[/]",
11230
- match: false
11231
- }
11232
- },
11233
- {
11234
- selector: "typeLike",
11235
- format: ["PascalCase"]
11236
- },
11237
- {
11238
- selector: "variable",
11239
- types: ["boolean"],
11240
- format: ["PascalCase", "camelCase"],
11241
- prefix: [
11242
- "is",
11243
- "has",
11244
- "can",
11245
- "should",
11246
- "will",
11247
- "did"
11248
- ]
11249
- },
11250
- {
11251
- selector: "interface",
11252
- format: ["PascalCase"]
11253
- },
11254
- {
11255
- selector: "typeParameter",
11256
- filter: "^T$|^[A-Z][a-zA-Z]+$",
11257
- format: ["PascalCase"]
11258
- }
11259
- ],
11260
11177
  "@typescript-eslint/no-floating-promises": ["error", {
11261
11178
  ignoreVoid: true,
11262
11179
  ignoreIIFE: true
@@ -11368,8 +11285,11 @@ function typescriptRulesTypeOblivious() {
11368
11285
  "@typescript-eslint/prefer-literal-enum-member": ["error", { allowBitwiseExpressions: true }],
11369
11286
  "no-restricted-syntax": [
11370
11287
  "error",
11371
- "ForInStatement",
11372
- "LabeledStatement"
11288
+ "DebuggerStatement",
11289
+ "LabeledStatement",
11290
+ "WithStatement",
11291
+ "TSEnumDeclaration[const=true]",
11292
+ "TSExportAssignment"
11373
11293
  ]
11374
11294
  };
11375
11295
  }
@@ -11384,8 +11304,10 @@ function typescriptRules(props) {
11384
11304
  ...props
11385
11305
  };
11386
11306
  dbg("building typescript rules: %O", normalized);
11307
+ const rulesFromPreset = normalized.includeTsEslintPresetRules ? tsPresetRules(normalized) : {};
11308
+ dbg("ts-eslint preset rules: %O", rulesFromPreset);
11387
11309
  return {
11388
- ...normalized.includeTsEslintPresetRules ? tsPresetRules(normalized) : {},
11310
+ ...rulesFromPreset,
11389
11311
  ...typescriptRulesTypeOblivious(),
11390
11312
  ...normalized.typeAware ? typescriptRulesTypeAware() : {}
11391
11313
  };
@@ -12209,8 +12131,8 @@ function autoUseParserService(options) {
12209
12131
  return !!(options.tsconfig && (typeof options.tsconfig === "string" && options.tsconfig === "tsconfig.json" || Array.isArray(options.tsconfig) && options.tsconfig.length === 1 && options.tsconfig[0] === "tsconfig.json"));
12210
12132
  }
12211
12133
  function typescriptParser(options) {
12212
- const { componentExts = [], filesTypeAware: files = [GLOB_TS, GLOB_TSX], ignoresTypeAware: ignores = [GLOB_MARKDOWN], name, parserOptions: parserOptionsOverride = {}, react, tsconfig, useProjectService = autoUseParserService(options) } = options;
12213
- const typeAware = !!tsconfig;
12134
+ const { componentExts = [], filesTypeAware: files = [GLOB_TS, GLOB_TSX], ignoresTypeAware: ignores = [GLOB_MARKDOWN], name, parserOptions: parserOptionsOverride = {}, react, tsconfig, typeAware: typeAwareOpt, useProjectService = autoUseParserService(options) } = options;
12135
+ const typeAware = typeAwareOpt === void 0 ? !!tsconfig : typeAwareOpt;
12214
12136
  if (useProjectService) {
12215
12137
  dbg("ts parser-options using `projectService`project service");
12216
12138
  return {
@@ -12225,7 +12147,7 @@ function typescriptParser(options) {
12225
12147
  ...typeAware ? {
12226
12148
  projectService: {
12227
12149
  allowDefaultProject: ["./*.js"],
12228
- defaultProject: (typeof tsconfig === "string" ? tsconfig : tsconfig[0]) ?? "tsconfig.json"
12150
+ defaultProject: (typeof tsconfig === "string" ? tsconfig : tsconfig?.[0]) ?? "tsconfig.json"
12229
12151
  },
12230
12152
  tsconfigRootDir: process$1.cwd()
12231
12153
  } : {},
@@ -12285,12 +12207,10 @@ const typescript = async (options) => {
12285
12207
  const tsPrefix = prefix?.from ?? "@typescript-eslint";
12286
12208
  const tsPrefixTo = prefix?.to ?? "@typescript-eslint";
12287
12209
  const tsRules = {
12288
- ...(pluginTs.configs["eslint-recommended"]?.overrides ?? [])[0]?.rules,
12289
- ...pluginTs.configs.strict?.rules,
12290
12210
  "no-invalid-this": "off",
12291
12211
  ...typescriptRules({
12292
12212
  strict,
12293
- typeAware
12213
+ typeAware: false
12294
12214
  }),
12295
12215
  ...overrides
12296
12216
  };
@@ -12625,6 +12545,8 @@ async function jsse(options = {}, ...userConfigs) {
12625
12545
  * ========================================================================
12626
12546
  */
12627
12547
  if (typescriptOptions) {
12548
+ const tsconfigProvided = typeof typescriptOptions === "object" && !!typescriptOptions.tsconfig;
12549
+ const effectiveTypeAware = options.typeAware === void 0 ? tsconfigProvided : typeAware;
12628
12550
  const tscfg = typescript({
12629
12551
  ...typeof typescriptOptions === "boolean" ? {} : typescriptOptions,
12630
12552
  componentExts,
@@ -12634,7 +12556,7 @@ async function jsse(options = {}, ...userConfigs) {
12634
12556
  to: tsPrefix ?? "@typescript-eslint"
12635
12557
  },
12636
12558
  react: enableReact,
12637
- typeAware
12559
+ typeAware: effectiveTypeAware
12638
12560
  });
12639
12561
  configs.push(tscfg, tsdoc());
12640
12562
  }
@@ -12672,7 +12594,7 @@ async function jsse(options = {}, ...userConfigs) {
12672
12594
  if (rootId !== "jsse") {
12673
12595
  for (const config of combinedConfigs) if (config.name && config.name.startsWith("jsse/")) config.name = config.name.replace("jsse/", `${rootId}/`);
12674
12596
  }
12675
- for (const config of combinedConfigs) {
12597
+ if (tsPrefix && tsPrefix !== "@typescript-eslint") for (const config of combinedConfigs) {
12676
12598
  if (config.plugins) {
12677
12599
  for (const [key, value] of Object.entries(config.plugins)) if (key.startsWith("@typescript-eslint/")) {
12678
12600
  delete config.plugins[key];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.7.0",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -68,7 +68,7 @@
68
68
  "@typescript-eslint/eslint-plugin": "^8.57.0",
69
69
  "@typescript-eslint/parser": "^8.57.0",
70
70
  "@typescript-eslint/rule-tester": "^8.57.0",
71
- "@vitest/eslint-plugin": "^1.6.10",
71
+ "@vitest/eslint-plugin": "^1.6.11",
72
72
  "debug": "^4.4.3",
73
73
  "eslint-config-flat-gitignore": "^2.2.1",
74
74
  "eslint-merge-processors": "^2.0.0",
@@ -76,8 +76,8 @@
76
76
  "eslint-plugin-command": "^3.5.2",
77
77
  "eslint-plugin-de-morgan": "^2.1.1",
78
78
  "eslint-plugin-import-lite": "^0.5.2",
79
- "eslint-plugin-jsdoc": "^62.7.1",
80
- "eslint-plugin-jsonc": "^3.1.1",
79
+ "eslint-plugin-jsdoc": "^62.8.0",
80
+ "eslint-plugin-jsonc": "^3.1.2",
81
81
  "eslint-plugin-n": "^17.24.0",
82
82
  "eslint-plugin-no-only-tests": "^3.3.0",
83
83
  "eslint-plugin-perfectionist": "^5.6.0",
@@ -101,7 +101,7 @@
101
101
  "@jsse/tsconfig": "^0.4.0",
102
102
  "@types/debug": "^4.1.12",
103
103
  "@types/fs-extra": "^11.0.4",
104
- "@types/node": "^25.4.0",
104
+ "@types/node": "^25.5.0",
105
105
  "cac": "^7.0.0",
106
106
  "eslint": "^9.39.4",
107
107
  "eslint-flat-config-utils": "^3.0.2",
@@ -112,26 +112,26 @@
112
112
  "fs-extra": "^11.3.4",
113
113
  "globals": "^17.4.0",
114
114
  "local-pkg": "^1.1.2",
115
- "oxfmt": "^0.36.0",
116
- "oxlint": "^1.51.0",
115
+ "oxfmt": "^0.38.0",
116
+ "oxlint": "^1.55.0",
117
117
  "picocolors": "^1.1.1",
118
118
  "prettier": "^3.8.1",
119
119
  "react": "~19.2.4",
120
120
  "rimraf": "^6.1.3",
121
- "tsdown": "^0.21.1",
121
+ "tsdown": "^0.21.2",
122
122
  "tsx": "^4.21.0",
123
123
  "typescript": "~5.9.3",
124
- "vitest": "^4.0.18"
124
+ "vitest": "^4.1.0"
125
125
  },
126
126
  "prettier": "@jsse/prettier-config",
127
127
  "scripts": {
128
128
  "build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
129
129
  "build:tsc": "tsc -b tsconfig.build.json",
130
130
  "build-fast": "tsdown src/index.ts src/cli.ts --format esm --clean",
131
- "gen": "tsx scripts/gen.ts && prettier -w --cache src",
131
+ "gen": "tsx scripts/gen.ts && prettier -w --cache --object-wrap=collapse src/_generated",
132
132
  "dev": "tsdown src/index.ts --format esm,cjs --watch",
133
- "fmt": "prettier -w .",
134
- "fmtc": "prettier --check .",
133
+ "fmt": "prettier -w --object-wrap=collapse .",
134
+ "fmtc": "prettier --check --object-wrap=collapse .",
135
135
  "lint": "pnpm run build-fast && eslint .",
136
136
  "lint:self": "pnpm run build-fast && eslint --report-unused-disable-directives .",
137
137
  "oxlint": "oxlint",