@qlik/eslint-config 0.4.32 → 0.5.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.
@@ -7,6 +7,27 @@ module.exports = {
7
7
  "no-plusplus": "off",
8
8
  "prefer-destructuring": ["error", { object: true, array: false }],
9
9
  "guard-for-in": "off",
10
+ // allow prev to be re-assigned in reducers
11
+ "no-param-reassign": [
12
+ "error",
13
+ {
14
+ props: true,
15
+ ignorePropertyModificationsFor: [
16
+ "prev", // for reduce accumulators
17
+ "acc", // for reduce accumulators
18
+ "accumulator", // for reduce accumulators
19
+ "e", // for e.returnvalue
20
+ "ctx", // for Koa routing
21
+ "context", // for Koa routing
22
+ "req", // for Express requests
23
+ "request", // for Express requests
24
+ "res", // for Express responses
25
+ "response", // for Express responses
26
+ "$scope", // for Angular 1 scopes
27
+ "staticContext", // for ReactRouter context
28
+ ],
29
+ },
30
+ ],
10
31
 
11
32
  // eslint import/order and prettier-plugin-organize-imports are currently incompatible
12
33
  "import/order": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlik/eslint-config",
3
- "version": "0.4.32",
3
+ "version": "0.5.1",
4
4
  "description": "Qlik's ESLint config for typescript",
5
5
  "repository": "git@github.com:qlik-oss/dev-tools-js.git",
6
6
  "license": "ISC",
@@ -28,8 +28,8 @@
28
28
  "extends": "eslint:recommended"
29
29
  },
30
30
  "dependencies": {
31
- "@typescript-eslint/eslint-plugin": "6.10.0",
32
- "@typescript-eslint/parser": "6.10.0",
31
+ "@typescript-eslint/eslint-plugin": "6.11.0",
32
+ "@typescript-eslint/parser": "6.11.0",
33
33
  "eslint-config-airbnb": "19.0.4",
34
34
  "eslint-config-airbnb-base": "15.0.0",
35
35
  "eslint-config-airbnb-typescript": "17.1.0",
@@ -46,8 +46,8 @@
46
46
  "svelte-eslint-parser": "0.33.1"
47
47
  },
48
48
  "devDependencies": {
49
- "eslint": "8.53.0",
50
- "prettier": "3.0.3",
49
+ "eslint": "8.54.0",
50
+ "prettier": "3.1.0",
51
51
  "@qlik/prettier-config": "0.4.2"
52
52
  },
53
53
  "peerDependencies": {