@arcgis/eslint-config 5.0.0-next.56 → 5.0.0-next.58

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.
@@ -1,35 +1,10 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
3
- name: string;
1
+ /**
2
+ * While the main index.js config strives to be comprehensive, this config
3
+ * disables rules that are less important for applications compared to libraries.
4
+ */
5
+ declare const _default: (import('@eslint/config-helpers').Config | {
4
6
  files: string[];
5
- language: string;
6
- plugins: {};
7
- rules: {
8
- readonly "markdown/fenced-code-language": "error";
9
- readonly "markdown/heading-increment": "error";
10
- readonly "markdown/no-duplicate-definitions": "error";
11
- readonly "markdown/no-empty-definitions": "error";
12
- readonly "markdown/no-empty-images": "error";
13
- readonly "markdown/no-empty-links": "error";
14
- readonly "markdown/no-invalid-label-refs": "error";
15
- readonly "markdown/no-missing-atx-heading-space": "error";
16
- readonly "markdown/no-missing-label-refs": "error";
17
- readonly "markdown/no-missing-link-fragments": "error";
18
- readonly "markdown/no-multiple-h1": "error";
19
- readonly "markdown/no-reversed-media-syntax": "error";
20
- readonly "markdown/require-alt-text": "error";
21
- readonly "markdown/table-column-count": "error";
22
- };
23
- } | {
24
- files: (string | string[])[];
25
- ignores?: string[];
26
- language?: string;
27
- languageOptions?: TSESLint.FlatConfig.LanguageOptions;
28
- linterOptions?: TSESLint.FlatConfig.LinterOptions;
29
7
  name?: string;
30
- plugins?: TSESLint.FlatConfig.Plugins;
31
- processor?: string | TSESLint.FlatConfig.Processor;
32
- rules?: TSESLint.FlatConfig.Rules;
33
- settings?: TSESLint.FlatConfig.Settings;
8
+ rules?: object;
34
9
  })[];
35
10
  export default _default;
@@ -1,35 +1,23 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
3
- name: string;
1
+ /**
2
+ * See setup documentation & rationale behind ESLint:
3
+ * https://qawebgis.esri.com/references/support-packages/eslint
4
+ *
5
+ * Some advice on editing rules:
6
+ * - prioritize autofixable rules to make adoption in existing codebases easier
7
+ * - disable redundant rules (rules redundant with TypeScript, or each other),
8
+ * to reduce noise and performance impact
9
+ * - if rule is always auto-fixable, it may be a good idea to emit it as a
10
+ * warning instead of an error to be less disruptive when the developer is
11
+ * typing code
12
+ * - emit rules that have a lot of false positives as warnings instead of errors
13
+ * - provide justification for enabling opinionated rules
14
+ * - provide justification for disabling default rules
15
+ * - if rule is disabled because it's buggy, describe how so
16
+ * (code sample, GitHub issue, permalink to file, etc)
17
+ */
18
+ declare const _default: (import('@eslint/config-helpers').Config | {
4
19
  files: string[];
5
- language: string;
6
- plugins: {};
7
- rules: {
8
- readonly "markdown/fenced-code-language": "error";
9
- readonly "markdown/heading-increment": "error";
10
- readonly "markdown/no-duplicate-definitions": "error";
11
- readonly "markdown/no-empty-definitions": "error";
12
- readonly "markdown/no-empty-images": "error";
13
- readonly "markdown/no-empty-links": "error";
14
- readonly "markdown/no-invalid-label-refs": "error";
15
- readonly "markdown/no-missing-atx-heading-space": "error";
16
- readonly "markdown/no-missing-label-refs": "error";
17
- readonly "markdown/no-missing-link-fragments": "error";
18
- readonly "markdown/no-multiple-h1": "error";
19
- readonly "markdown/no-reversed-media-syntax": "error";
20
- readonly "markdown/require-alt-text": "error";
21
- readonly "markdown/table-column-count": "error";
22
- };
23
- } | {
24
- files: (string | string[])[];
25
- ignores?: string[];
26
- language?: string;
27
- languageOptions?: TSESLint.FlatConfig.LanguageOptions;
28
- linterOptions?: TSESLint.FlatConfig.LinterOptions;
29
20
  name?: string;
30
- plugins?: TSESLint.FlatConfig.Plugins;
31
- processor?: string | TSESLint.FlatConfig.Processor;
32
- rules?: TSESLint.FlatConfig.Rules;
33
- settings?: TSESLint.FlatConfig.Settings;
21
+ rules?: object;
34
22
  })[];
35
23
  export default _default;
@@ -310,7 +310,7 @@ const defaultConfig = [
310
310
  */
311
311
  "arrow-body-style": "warn",
312
312
  // This rule is a good idea, but not autofixable, so is only a warning
313
- // TODO: this does not support type-only imports. use import/no-duplicates instead
313
+ // TODO: this has basic type imports support. also consider import/no-duplicates
314
314
  "no-duplicate-imports": "off",
315
315
  // We will enforce strict curly. Rational:
316
316
  // - Same as core api
@@ -1,5 +1,5 @@
1
1
  import { ESLintUtils } from "@typescript-eslint/utils";
2
- const version = "5.0.0-next.56";
2
+ const version = "5.0.0-next.58";
3
3
  function makeEslintPlugin(pluginName, urlCreator) {
4
4
  const rules = [];
5
5
  const creator = ESLintUtils.RuleCreator(urlCreator);
@@ -1,5 +1,5 @@
1
- export declare const luminaPlugin: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Plugin & {
1
+ export declare const luminaPlugin: import("typescript-eslint").FlatConfig.Plugin & {
2
2
  configs: {
3
- recommended: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
3
+ recommended: import("typescript-eslint").FlatConfig.Config;
4
4
  };
5
5
  };
@@ -1,4 +1,4 @@
1
- import { m as makeEslintPlugin } from "../../makePlugin-C6QdFidG.js";
1
+ import { m as makeEslintPlugin } from "../../makePlugin-CJoFJjCY.js";
2
2
  import { AST_NODE_TYPES, ESLintUtils, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
3
3
  import ts from "typescript";
4
4
  import { camelToKebab } from "@arcgis/toolkit/string";
@@ -1,8 +1,8 @@
1
1
  export declare const plugin: {
2
2
  createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
3
- finalize: () => import("@typescript-eslint/utils/ts-eslint").FlatConfig.Plugin & {
3
+ finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
4
4
  configs: {
5
- recommended: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
5
+ recommended: import("typescript-eslint").FlatConfig.Config;
6
6
  };
7
7
  };
8
8
  };
@@ -1,5 +1,5 @@
1
- export declare const webgisPlugin: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Plugin & {
1
+ export declare const webgisPlugin: import("typescript-eslint").FlatConfig.Plugin & {
2
2
  configs: {
3
- recommended: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
3
+ recommended: import("typescript-eslint").FlatConfig.Config;
4
4
  };
5
5
  };
@@ -1,4 +1,4 @@
1
- import { m as makeEslintPlugin } from "../../makePlugin-C6QdFidG.js";
1
+ import { m as makeEslintPlugin } from "../../makePlugin-CJoFJjCY.js";
2
2
  import { resolve } from "path/posix";
3
3
  import { AST_NODE_TYPES } from "@typescript-eslint/utils";
4
4
  const plugin = makeEslintPlugin(
@@ -1,8 +1,8 @@
1
1
  export declare const plugin: {
2
2
  createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
3
- finalize: () => import("@typescript-eslint/utils/ts-eslint").FlatConfig.Plugin & {
3
+ finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
4
4
  configs: {
5
- recommended: import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config;
5
+ recommended: import("typescript-eslint").FlatConfig.Config;
6
6
  };
7
7
  };
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/eslint-config",
3
- "version": "5.0.0-next.56",
3
+ "version": "5.0.0-next.58",
4
4
  "description": "ESLint configuration for arcgis-web-components",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -20,18 +20,18 @@
20
20
  ],
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@arcgis/toolkit": "5.0.0-next.56",
24
- "@eslint/js": "^9.29.0",
25
- "@eslint/markdown": "^6.6.0",
23
+ "@arcgis/toolkit": "5.0.0-next.58",
24
+ "@eslint/js": "^9.39.1",
25
+ "@eslint/markdown": "^7.5.1",
26
26
  "@types/confusing-browser-globals": "^1.0.3",
27
27
  "confusing-browser-globals": "^1.0.11",
28
28
  "eslint-plugin-storybook": "^0.12.0",
29
- "globals": "^16.3.0",
29
+ "globals": "^16.5.0",
30
30
  "tslib": "^2.8.1",
31
- "typescript": "~5.8.3",
32
- "typescript-eslint": "^8.35.0"
31
+ "typescript": "~5.9.3",
32
+ "typescript-eslint": "^8.46.3"
33
33
  },
34
34
  "peerDependencies": {
35
- "eslint": "^9.29.0"
35
+ "eslint": "^9.39.1"
36
36
  }
37
37
  }