eslint-config-beslogic 3.2.0 → 3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.2.1
4
+
5
+ - Disabled `@typescript-eslint/no-misused-spread`:\
6
+ Still a handful of false-positives and I couldn't get the configuration working.\
7
+ Especially annoying with autogenerated API when spreading class instance
8
+ with readonly properties as its contructor object.\
9
+ ie: `new Myclass({...someInstance, overwritten_prop: "foo"})`\
10
+ NOTE: If fixed, we'd still only want this in extra-strict config.
11
+
3
12
  ## 3.2.0
4
13
 
5
14
  - Migrated from `eslint-plugin-import` to `eslint-plugin-import-x@^4.2.1` for simpler configs and performance improvement.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-beslogic",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "ESLint rules, plugins and configs used at Beslogic",
5
5
  "main": "index.js",
6
6
  "// dependencies": "Run for ourselves when we install dependencies w/o running npm i afterward",
package/tsconfig.json CHANGED
@@ -9,6 +9,6 @@
9
9
  "jsx": "react",
10
10
  "allowJs": true,
11
11
  "checkJs": true,
12
- "noImplicitAny": false
13
- }
12
+ "noImplicitAny": false,
13
+ },
14
14
  }
package/typescript.js CHANGED
@@ -208,6 +208,12 @@ module.exports = {
208
208
  "ignoreTypeIndexes": true
209
209
  }
210
210
  ],
211
+ // Still a handful of false-positives and I couldn't get the configuration working.
212
+ // Especially annoying with autogenerated API when spreading class instance
213
+ // with readonly properties as its contructor object.
214
+ // ie: `new Myclass({...someInstance, overwritten_prop: "foo"})`
215
+ // NOTE: If fixed, we'd still only want this in extra-strict config.
216
+ "@typescript-eslint/no-misused-spread": "off",
211
217
  "@typescript-eslint/no-misused-promises": [
212
218
  "error",
213
219
  {