@arcgis/eslint-config 5.2.0-next.98 → 6.0.0-next.0
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/chunks/disabledRules.js +6 -0
- package/dist/{makePlugin-DQ9er9DW.js → chunks/makePlugin.js} +1 -1
- package/dist/config/applications.js +31 -27
- package/dist/config/core.js +354 -176
- package/dist/config/extra.js +9 -10
- package/dist/config/index.js +511 -477
- package/dist/config/lumina.js +17 -34
- package/dist/plugins/core/index.js +1 -1
- package/dist/plugins/lumina/index.js +2 -2
- package/dist/plugins/webgis/index.js +4 -4
- package/package.json +2 -3
- /package/dist/{estree-Ern7-L05.js → chunks/estree.js} +0 -0
|
@@ -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
|
-
|
|
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
|
];
|