@arcgis/eslint-config 5.2.0-next.99 → 6.0.0-next.1

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.
@@ -0,0 +1,6 @@
1
+ function disabledRules(names) {
2
+ return Object.fromEntries(names.map((name) => [name, "off"]));
3
+ }
4
+ export {
5
+ disabledRules as d
6
+ };
@@ -1,5 +1,5 @@
1
1
  import { ESLintUtils } from "@typescript-eslint/utils";
2
- const version = "5.2.0-next.99";
2
+ const version = "1.0.0-0";
3
3
  const packageJson = {
4
4
  version
5
5
  };
@@ -1,35 +1,39 @@
1
+ import { d as disabledRules } from "../chunks/disabledRules.js";
1
2
  import config$1 from "./index.js";
3
+ const disabledApplicationRules = [
4
+ // Not autofixable. Can be annoying
5
+ "@typescript-eslint/ban-ts-comment",
6
+ // Less important in apps than in libraries
7
+ // Though, explicit return type improve TypeScript performance
8
+ "@typescript-eslint/explicit-function-return-type",
9
+ // Less important for non-public APIs.
10
+ // And can be tedious to refactor existing code.
11
+ "@typescript-eslint/max-params",
12
+ // No big harm in letting people do this if they want to
13
+ "@typescript-eslint/no-extraneous-class",
14
+ // A trade off between developer convenience and code quality
15
+ "@typescript-eslint/no-floating-promises",
16
+ // A convenient lazy variant, but less safe
17
+ "@typescript-eslint/no-unsafe-function-type",
18
+ // Non-customer-facing code can handle Errors in what way is most convenient
19
+ "@typescript-eslint/only-throw-error",
20
+ // Non-customer-facing code can handle Errors in what way is most convenient
21
+ "@typescript-eslint/prefer-promise-reject-errors",
22
+ // A trade off between developer convenience and code quality
23
+ "@typescript-eslint/promise-function-async",
24
+ // Let developer decide to add or omit it. If not present, creates
25
+ // worse exception messages.
26
+ "func-names",
27
+ // This rule is for consistency between library developers - less important for monolith apps.
28
+ "id-denylist",
29
+ // More important for library-exposed symbols than apps
30
+ "symbol-description"
31
+ ];
2
32
  const config = [
3
33
  ...config$1,
4
34
  {
5
35
  rules: {
6
- // Not autofixable. Can be annoying
7
- "@typescript-eslint/ban-ts-comment": "off",
8
- // Less important in apps than in libraries
9
- // Though, explicit return type improve TypeScript performance
10
- "@typescript-eslint/explicit-function-return-type": "off",
11
- // Less important for non-public APIs.
12
- // And can be tedious to refactor existing code.
13
- "@typescript-eslint/max-params": "off",
14
- // No big harm in letting people do this if they want to
15
- "@typescript-eslint/no-extraneous-class": "off",
16
- // A convenient lazy variant, but less safe
17
- "@typescript-eslint/no-unsafe-function-type": "off",
18
- // Non-customer-facing code can handle Errors in what way is most convenient
19
- "@typescript-eslint/only-throw-error": "off",
20
- // Non-customer-facing code can handle Errors in what way is most convenient
21
- "@typescript-eslint/prefer-promise-reject-errors": "off",
22
- // A trade off between developer convenience and code quality
23
- "@typescript-eslint/no-floating-promises": "off",
24
- // A trade off between developer convenience and code quality
25
- "@typescript-eslint/promise-function-async": "off",
26
- // Let developer decide to add or omit it. If not present, creates
27
- // worse exception messages.
28
- "func-names": "off",
29
- // This rule is for consistency between library developers - less important for monolith apps.
30
- "id-denylist": "off",
31
- // More important for library-exposed symbols than apps
32
- "symbol-description": "off"
36
+ ...disabledRules(disabledApplicationRules)
33
37
  }
34
38
  }
35
39
  ];