@isentinel/eslint-config 0.6.0-beta.2 → 0.6.0-beta.3

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/index.cjs CHANGED
@@ -34,9 +34,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
36
  // node_modules/.pnpm/tsup@8.1.0_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js
37
+ var getImportMetaUrl, importMetaUrl;
37
38
  var init_cjs_shims = __esm({
38
39
  "node_modules/.pnpm/tsup@8.1.0_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js"() {
39
40
  "use strict";
41
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
42
+ importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
40
43
  }
41
44
  });
42
45
 
@@ -1440,7 +1443,10 @@ async function jsdoc(options = {}) {
1440
1443
  "jsdoc/no-multi-asterisks": "warn",
1441
1444
  "jsdoc/no-types": "warn",
1442
1445
  "jsdoc/require-asterisk-prefix": "warn",
1443
- "jsdoc/require-description": ["warn", { exemptedBy: ["hidden, ignore"] }],
1446
+ "jsdoc/require-description": [
1447
+ "warn",
1448
+ { exemptedBy: ["hidden, ignore", "inheritdoc", "client", "server"] }
1449
+ ],
1444
1450
  "jsdoc/require-description-complete-sentence": "warn",
1445
1451
  "jsdoc/require-hyphen-before-param-description": "warn",
1446
1452
  "jsdoc/require-param": [
@@ -1658,14 +1664,15 @@ async function prettier(options) {
1658
1664
  GLOB_SRC,
1659
1665
  ...componentExtensions.map((extension) => `**/*.${extension}`)
1660
1666
  ];
1661
- const defaultPrettierOptions = prettierOptions ?? {
1667
+ const defaultPrettierOptions = {
1662
1668
  arrowParens: "avoid",
1663
- printWidth: 120,
1669
+ printWidth: 100,
1664
1670
  semi: true,
1665
1671
  singleQuote: false,
1666
1672
  tabWidth: 4,
1667
1673
  trailingComma: "all",
1668
- useTabs: true
1674
+ useTabs: true,
1675
+ ...prettierOptions
1669
1676
  };
1670
1677
  return [
1671
1678
  {
@@ -2314,12 +2321,21 @@ function sortTsconfig() {
2314
2321
 
2315
2322
  // src/configs/spelling.ts
2316
2323
  init_cjs_shims();
2324
+ var import_node_module = require("module");
2325
+ var import_node_url = require("url");
2326
+ var require2 = (0, import_node_module.createRequire)(importMetaUrl);
2317
2327
  async function spelling(options = {}) {
2318
- const { componentExts: componentExtensions = [] } = options;
2328
+ const { componentExts: componentExtensions = [], language = "en-US" } = options;
2319
2329
  const files = options.files ?? [
2320
2330
  GLOB_SRC,
2321
2331
  ...componentExtensions.map((extension) => `**/*.${extension}`)
2322
2332
  ];
2333
+ const robloxDictionary = require2.resolve("@isentinel/dict-roblox");
2334
+ const urlRobloxDictionary = (0, import_node_url.pathToFileURL)(robloxDictionary);
2335
+ const urlRoblox = new URL("dict/roblox.txt", urlRobloxDictionary);
2336
+ const rbxtsDictionary = require2.resolve("@isentinel/dict-rbxts");
2337
+ const urlRbxtsDictionary = (0, import_node_url.pathToFileURL)(rbxtsDictionary);
2338
+ const urlRbxts = new URL("dict/rbxts.txt", urlRbxtsDictionary);
2323
2339
  return [
2324
2340
  {
2325
2341
  files,
@@ -2334,8 +2350,18 @@ async function spelling(options = {}) {
2334
2350
  autoFix: false,
2335
2351
  checkComments: true,
2336
2352
  cspell: {
2337
- import: ["@isentinel/dict-roblox"],
2338
- language: "en-US",
2353
+ dictionaries: ["roblox", "rbxts"],
2354
+ dictionaryDefinitions: [
2355
+ {
2356
+ name: "roblox",
2357
+ path: urlRoblox.href
2358
+ },
2359
+ {
2360
+ name: "rbxts",
2361
+ path: urlRbxts.href
2362
+ }
2363
+ ],
2364
+ language,
2339
2365
  words: ["isentinel"]
2340
2366
  },
2341
2367
  generateSuggestions: true,
@@ -2895,7 +2921,7 @@ function style(options = {}, ...userConfigs) {
2895
2921
  if (enableSpellCheck ?? true) {
2896
2922
  configs.push(
2897
2923
  spelling({
2898
- ...resolveSubOptions(options, "typescript"),
2924
+ ...resolveSubOptions(options, "spellCheck"),
2899
2925
  componentExts: componentExtensions
2900
2926
  })
2901
2927
  );