@isentinel/eslint-config 4.2.1 → 4.2.2

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
@@ -10,7 +10,7 @@ import { existsSync, readFileSync } from "fs";
10
10
  import { execSync } from "node:child_process";
11
11
 
12
12
  //#region package.json
13
- var version = "4.2.1";
13
+ var version = "4.2.2";
14
14
  var package_default = {
15
15
  name: "@isentinel/eslint-config",
16
16
  version,
package/dist/index.d.mts CHANGED
@@ -16582,7 +16582,9 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
16582
16582
  declare function comments(options?: OptionsFormatters & OptionsStylistic): Promise<Array<TypedFlatConfigItem>>;
16583
16583
  //#endregion
16584
16584
  //#region src/configs/disables.d.ts
16585
- declare function disables(): Promise<Array<TypedFlatConfigItem>>;
16585
+ declare function disables(options: {
16586
+ root: Array<string>;
16587
+ }): Promise<Array<TypedFlatConfigItem>>;
16586
16588
  //#endregion
16587
16589
  //#region src/configs/eslint-plugin.d.ts
16588
16590
  declare function eslintPlugin(options?: OptionsFiles & OptionsOverrides): Promise<Array<TypedFlatConfigItem>>;
package/dist/index.mjs CHANGED
@@ -446,7 +446,8 @@ async function comments(options = {}) {
446
446
 
447
447
  //#endregion
448
448
  //#region src/configs/disables.ts
449
- async function disables() {
449
+ async function disables(options) {
450
+ const { root } = options;
450
451
  return [
451
452
  {
452
453
  files: [`**/scripts/${GLOB_SRC}`],
@@ -516,7 +517,7 @@ async function disables() {
516
517
  rules: { "ts/no-require-imports": "off" }
517
518
  },
518
519
  {
519
- files: ["*.?([cm])[jt]s?(x)", `*.md/${GLOB_SRC}`],
520
+ files: [...root, `*.md/${GLOB_SRC}`],
520
521
  name: "isentinel/disables/root",
521
522
  rules: {
522
523
  "sonar/file-name-differ-from-class": "off",
@@ -4965,6 +4966,7 @@ const defaultPluginRenaming = {
4965
4966
  */
4966
4967
  async function isentinel(options = {}, ...userConfigs) {
4967
4968
  const { autoRenamePlugins = true, componentExts: componentExtensions = [], eslintPlugin: enableEslintPlugin = false, formatters, gitignore: enableGitignore = true, jsdoc: enableJsdoc = true, jsx: enableJsx = true, pnpm: enableCatalogs = false, react: enableReact = false, root: customRootGlobs, spellCheck: enableSpellCheck, typescript: enableTypeScript } = options;
4969
+ const rootGlobs = mergeGlobs(GLOB_ROOT, customRootGlobs);
4968
4970
  const enableRoblox = options.roblox !== false;
4969
4971
  let { isInEditor } = options;
4970
4972
  if (isInEditor === void 0) {
@@ -5024,7 +5026,7 @@ async function isentinel(options = {}, ...userConfigs) {
5024
5026
  componentExts: componentExtensions,
5025
5027
  stylistic: stylisticOptions
5026
5028
  }), unicorn({
5027
- root: customRootGlobs,
5029
+ root: rootGlobs,
5028
5030
  stylistic: stylisticOptions
5029
5031
  }));
5030
5032
  if (options.flawless === true) configs.push(flawless({ ...getOverrides(options, "flawless") }));
@@ -5092,7 +5094,7 @@ async function isentinel(options = {}, ...userConfigs) {
5092
5094
  componentExts: componentExtensions,
5093
5095
  isInEditor
5094
5096
  }));
5095
- configs.push(disables());
5097
+ configs.push(disables({ root: rootGlobs }));
5096
5098
  if (stylisticOptions !== false) configs.push(prettier({
5097
5099
  ...resolveWithDefaults(enableTypeScript, {}),
5098
5100
  ...getOverrides(options, "typescript"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isentinel/eslint-config",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "iSentinel's ESLint config",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -124,7 +124,7 @@
124
124
  "tsdown": "0.16.1",
125
125
  "type-fest": "5.2.0",
126
126
  "typescript": "5.9.3",
127
- "@isentinel/eslint-config": "4.2.1"
127
+ "@isentinel/eslint-config": "4.2.2"
128
128
  },
129
129
  "peerDependencies": {
130
130
  "@vitest/eslint-plugin": "^1.0.0",