@open-turo/eslint-config-typescript 13.0.1 → 14.0.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.
@@ -0,0 +1,3 @@
1
+ # Breaking changes in v14
2
+
3
+ We are bumping `eslint-plugin-n` 3 major versions, from v14 to v17. v17 is the most up-to-date version, and is the only version that is actively supported. v15 and v16 support older versions of node, and are on end-of-life support. The breaking changes are related to dropping support for older versions of node. We are cutting a new major for these changes for clarity, as there are ultimately changes in the underlying configuration due to these changes as well. (See https://github.com/open-turo/eslint-config-typescript/commit/be14f66f9e51b35d1c23896a42e48d62c09038bd)
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "author": "Turo engineering",
3
3
  "description": "Turo eslint configuration for typescript",
4
4
  "dependencies": {
5
- "@typescript-eslint/eslint-plugin": "8.18.0",
6
- "@typescript-eslint/parser": "8.18.0",
5
+ "@typescript-eslint/eslint-plugin": "8.18.1",
6
+ "@typescript-eslint/parser": "8.18.1",
7
7
  "eslint-config-prettier": "9.1.0",
8
8
  "eslint-import-resolver-typescript": "3.7.0",
9
9
  "eslint-plugin-import": "2.31.0",
10
10
  "eslint-plugin-jest": "28.9.0",
11
11
  "eslint-plugin-json": "4.0.1",
12
- "eslint-plugin-n": "14.0.0",
12
+ "eslint-plugin-n": "17.15.0",
13
13
  "eslint-plugin-prettier": "5.2.1",
14
14
  "eslint-plugin-simple-import-sort": "12.1.1",
15
15
  "eslint-plugin-sonarjs": "3.0.1",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "repository": "https://github.com/open-turo/eslint-config-typescript",
45
- "version": "13.0.1"
45
+ "version": "14.0.1"
46
46
  }
@@ -7,57 +7,74 @@ exports[`validate config load config file in ESLint to validate all rules are co
7
7
  "es2024": true,
8
8
  "jest": true,
9
9
  "jest/globals": true,
10
+ "node": true,
10
11
  },
11
12
  "globals": {
12
- "ArrayBuffer": "readonly",
13
- "Atomics": "readonly",
14
- "BigInt": "readonly",
15
- "BigInt64Array": "readonly",
16
- "BigUint64Array": "readonly",
17
- "Buffer": "readonly",
18
- "DataView": "readonly",
19
- "Float32Array": "readonly",
20
- "Float64Array": "readonly",
21
- "GLOBAL": "readonly",
22
- "Int16Array": "readonly",
23
- "Int32Array": "readonly",
24
- "Int8Array": "readonly",
25
- "Intl": "readonly",
26
- "Map": "readonly",
27
- "Promise": "readonly",
28
- "Proxy": "readonly",
29
- "Reflect": "readonly",
30
- "Set": "readonly",
31
- "SharedArrayBuffer": "readonly",
32
- "Symbol": "readonly",
33
- "TextDecoder": "readonly",
34
- "TextEncoder": "readonly",
35
- "URL": "readonly",
36
- "URLSearchParams": "readonly",
37
- "Uint16Array": "readonly",
38
- "Uint32Array": "readonly",
39
- "Uint8Array": "readonly",
40
- "Uint8ClampedArray": "readonly",
41
- "WeakMap": "readonly",
42
- "WeakSet": "readonly",
43
- "WebAssembly": "readonly",
13
+ "AggregateError": false,
14
+ "Array": false,
15
+ "ArrayBuffer": false,
16
+ "Atomics": false,
17
+ "BigInt": false,
18
+ "BigInt64Array": false,
19
+ "BigUint64Array": false,
20
+ "Boolean": false,
21
+ "DataView": false,
22
+ "Date": false,
23
+ "Error": false,
24
+ "EvalError": false,
25
+ "FinalizationRegistry": false,
26
+ "Float32Array": false,
27
+ "Float64Array": false,
28
+ "Function": false,
29
+ "Infinity": false,
30
+ "Int16Array": false,
31
+ "Int32Array": false,
32
+ "Int8Array": false,
33
+ "Intl": false,
34
+ "JSON": false,
35
+ "Map": false,
36
+ "Math": false,
37
+ "NaN": false,
38
+ "Number": false,
39
+ "Object": false,
40
+ "Promise": false,
41
+ "Proxy": false,
42
+ "RangeError": false,
43
+ "ReferenceError": false,
44
+ "Reflect": false,
45
+ "RegExp": false,
46
+ "Set": false,
47
+ "SharedArrayBuffer": false,
48
+ "String": false,
49
+ "Symbol": false,
50
+ "SyntaxError": false,
51
+ "TypeError": false,
52
+ "URIError": false,
53
+ "Uint16Array": false,
54
+ "Uint32Array": false,
55
+ "Uint8Array": false,
56
+ "Uint8ClampedArray": false,
57
+ "WeakMap": false,
58
+ "WeakRef": false,
59
+ "WeakSet": false,
44
60
  "__dirname": "readonly",
45
61
  "__filename": "readonly",
46
- "clearImmediate": "readonly",
47
- "clearInterval": "readonly",
48
- "clearTimeout": "readonly",
49
- "console": "readonly",
62
+ "decodeURI": false,
63
+ "decodeURIComponent": false,
64
+ "encodeURI": false,
65
+ "encodeURIComponent": false,
66
+ "escape": false,
67
+ "eval": false,
50
68
  "exports": "writable",
51
- "global": "readonly",
52
- "globalThis": "readonly",
69
+ "globalThis": false,
70
+ "isFinite": false,
71
+ "isNaN": false,
53
72
  "module": "readonly",
54
- "process": "readonly",
55
- "queueMicrotask": "readonly",
73
+ "parseFloat": false,
74
+ "parseInt": false,
56
75
  "require": "readonly",
57
- "root": "readonly",
58
- "setImmediate": "readonly",
59
- "setInterval": "readonly",
60
- "setTimeout": "readonly",
76
+ "undefined": false,
77
+ "unescape": false,
61
78
  },
62
79
  "ignorePatterns": [],
63
80
  "noInlineConfig": undefined,
@@ -541,6 +558,9 @@ exports[`validate config load config file in ESLint to validate all rules are co
541
558
  "multiline-ternary": [
542
559
  "off",
543
560
  ],
561
+ "n/hashbang": [
562
+ "error",
563
+ ],
544
564
  "n/no-deprecated-api": [
545
565
  "error",
546
566
  ],
@@ -572,6 +592,8 @@ exports[`validate config load config file in ESLint to validate all rules are co
572
592
  "@jest/globals",
573
593
  "nock",
574
594
  ],
595
+ "ignorePrivate": true,
596
+ "ignoreTypeImport": false,
575
597
  },
576
598
  ],
577
599
  "n/no-unpublished-require": [
@@ -592,9 +614,6 @@ exports[`validate config load config file in ESLint to validate all rules are co
592
614
  "n/process-exit-as-throw": [
593
615
  "error",
594
616
  ],
595
- "n/shebang": [
596
- "error",
597
- ],
598
617
  "new-parens": [
599
618
  "off",
600
619
  ],