acaleph-eslint 1.2.1 → 1.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/index.cjs CHANGED
@@ -13899,6 +13899,7 @@ async function typescript(options = {}) {
13899
13899
  const {
13900
13900
  componentExts = [],
13901
13901
  erasableOnly = false,
13902
+ globals: globals2 = {},
13902
13903
  overrides = {},
13903
13904
  overridesTypeAware = {},
13904
13905
  parserOptions = {},
@@ -13950,6 +13951,7 @@ async function typescript(options = {}) {
13950
13951
  files: files2,
13951
13952
  ...ignores2 ? { ignores: ignores2 } : {},
13952
13953
  languageOptions: {
13954
+ globals: globals2,
13953
13955
  parser: parserTs,
13954
13956
  parserOptions: {
13955
13957
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
@@ -14516,6 +14518,7 @@ function acaleph(options = {}, ...userConfigs) {
14516
14518
  typescript({
14517
14519
  ...typescriptOptions,
14518
14520
  componentExts,
14521
+ globals: globals2,
14519
14522
  overrides: getOverrides(options, "typescript"),
14520
14523
  type: options.type
14521
14524
  })
package/dist/index.d.cts CHANGED
@@ -11546,6 +11546,7 @@ interface VendoredPrettierOptionsRequired {
11546
11546
 
11547
11547
  type Awaitable<T> = T | Promise<T>;
11548
11548
  type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
11549
+ type GlobalsOptions = Record<string, 'readonly' | 'writable'>;
11549
11550
 
11550
11551
  /**
11551
11552
  * An updated version of ESLint's `Linter.Config`, which provides autocompletion
@@ -11717,6 +11718,10 @@ interface OptionsTypeScriptParserOptions {
11717
11718
  * @default ['**\/*.md\/**', '**\/*.astro/*.ts']
11718
11719
  */
11719
11720
  ignoresTypeAware?: string[];
11721
+ /**
11722
+ * @example global: {xxxx: 'readonly' | 'writable'}
11723
+ */
11724
+ globals?: GlobalsOptions;
11720
11725
  }
11721
11726
  interface OptionsTypeScriptWithTypes {
11722
11727
  /**
@@ -12023,7 +12028,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
12023
12028
  * @default true
12024
12029
  */
12025
12030
  autoRenamePlugins?: boolean;
12026
- globals?: Record<PropertyKey, any>;
12031
+ globals?: GlobalsOptions;
12027
12032
  /**
12028
12033
  * Provide overrides for rules for each integration.
12029
12034
  *
package/dist/index.d.ts CHANGED
@@ -11546,6 +11546,7 @@ interface VendoredPrettierOptionsRequired {
11546
11546
 
11547
11547
  type Awaitable<T> = T | Promise<T>;
11548
11548
  type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
11549
+ type GlobalsOptions = Record<string, 'readonly' | 'writable'>;
11549
11550
 
11550
11551
  /**
11551
11552
  * An updated version of ESLint's `Linter.Config`, which provides autocompletion
@@ -11717,6 +11718,10 @@ interface OptionsTypeScriptParserOptions {
11717
11718
  * @default ['**\/*.md\/**', '**\/*.astro/*.ts']
11718
11719
  */
11719
11720
  ignoresTypeAware?: string[];
11721
+ /**
11722
+ * @example global: {xxxx: 'readonly' | 'writable'}
11723
+ */
11724
+ globals?: GlobalsOptions;
11720
11725
  }
11721
11726
  interface OptionsTypeScriptWithTypes {
11722
11727
  /**
@@ -12023,7 +12028,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
12023
12028
  * @default true
12024
12029
  */
12025
12030
  autoRenamePlugins?: boolean;
12026
- globals?: Record<PropertyKey, any>;
12031
+ globals?: GlobalsOptions;
12027
12032
  /**
12028
12033
  * Provide overrides for rules for each integration.
12029
12034
  *
package/dist/index.js CHANGED
@@ -1618,6 +1618,7 @@ async function typescript(options = {}) {
1618
1618
  const {
1619
1619
  componentExts = [],
1620
1620
  erasableOnly = false,
1621
+ globals: globals2 = {},
1621
1622
  overrides = {},
1622
1623
  overridesTypeAware = {},
1623
1624
  parserOptions = {},
@@ -1669,6 +1670,7 @@ async function typescript(options = {}) {
1669
1670
  files: files2,
1670
1671
  ...ignores2 ? { ignores: ignores2 } : {},
1671
1672
  languageOptions: {
1673
+ globals: globals2,
1672
1674
  parser: parserTs,
1673
1675
  parserOptions: {
1674
1676
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
@@ -2235,6 +2237,7 @@ function acaleph(options = {}, ...userConfigs) {
2235
2237
  typescript({
2236
2238
  ...typescriptOptions,
2237
2239
  componentExts,
2240
+ globals: globals2,
2238
2241
  overrides: getOverrides(options, "typescript"),
2239
2242
  type: options.type
2240
2243
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "acaleph-eslint",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "packageManager": "pnpm@10.5.2",
6
6
  "description": "",
7
7
  "author": "acaleph",