@arcgis/eslint-config 5.2.0-next.15 → 5.2.0-next.151

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.
@@ -2,19 +2,10 @@ const config = [
2
2
  {
3
3
  files: ["**/*.ts", "**/*.tsx"],
4
4
  rules: {
5
- // See https://devtopia.esri.com/WebGIS/arcgis-web-components/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
  ];