@arcgis/eslint-config 5.2.0-next.99 → 5.2.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.
- package/dist/chunks/disabledRules.js +6 -0
- package/dist/{makePlugin-Cvfc0MLz.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
package/dist/config/extra.js
CHANGED
|
@@ -2,19 +2,10 @@ const config = [
|
|
|
2
2
|
{
|
|
3
3
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4
4
|
rules: {
|
|
5
|
-
// See https://devtopia.esri.com/WebGIS/webgis-sdk/discussions/446#discussioncomment-3166
|
|
6
|
-
"@typescript-eslint/no-unsafe-return": "warn",
|
|
7
|
-
/*
|
|
8
|
-
* Lot's of false positives on pure functions that don't use
|
|
9
|
-
* "this". For example:
|
|
10
|
-
* const { whenOnce } = await importCoreReactiveUtils();
|
|
11
|
-
*/
|
|
12
|
-
"@typescript-eslint/unbound-method": "warn",
|
|
13
5
|
/*
|
|
14
6
|
* This rule can have many positives (i.e abstract methods), or fire on code
|
|
15
7
|
* that you can't refactor without breaking changes
|
|
16
8
|
*/
|
|
17
|
-
"class-methods-use-this": "off",
|
|
18
9
|
"@typescript-eslint/class-methods-use-this": [
|
|
19
10
|
"warn",
|
|
20
11
|
{
|
|
@@ -22,11 +13,19 @@ const config = [
|
|
|
22
13
|
ignoreClassesThatImplementAnInterface: "public-fields"
|
|
23
14
|
}
|
|
24
15
|
],
|
|
16
|
+
// See https://devtopia.esri.com/WebGIS/webgis-sdk/discussions/446#discussioncomment-3166
|
|
17
|
+
"@typescript-eslint/no-unsafe-return": "warn",
|
|
25
18
|
/**
|
|
26
19
|
* False positive when constructor exists to improve typing/narrow down the
|
|
27
20
|
* type
|
|
28
21
|
*/
|
|
29
|
-
"@typescript-eslint/no-useless-constructor": "warn"
|
|
22
|
+
"@typescript-eslint/no-useless-constructor": "warn",
|
|
23
|
+
/*
|
|
24
|
+
* Lot's of false positives on pure functions that don't use
|
|
25
|
+
* "this". For example:
|
|
26
|
+
* const { whenOnce } = await importCoreReactiveUtils();
|
|
27
|
+
*/
|
|
28
|
+
"@typescript-eslint/unbound-method": "warn"
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
];
|