@wistia/eslint-config 1.5.2 → 1.6.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,17 @@
|
|
|
1
1
|
# @wistia/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#423](https://github.com/wistia/eslint-config/pull/423) [`bb6333e`](https://github.com/wistia/eslint-config/commit/bb6333e4ac894afa8980a9592c786b01ef0d8d6c) Thanks [@okize](https://github.com/okize)! - fix: disable `no-undef-init` in typescript rules because it conflicts with `init-declarations` setting
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#420](https://github.com/wistia/eslint-config/pull/420) [`5a06c59`](https://github.com/wistia/eslint-config/commit/5a06c59431dc211fbfabc86bfb4691657840861e) Thanks [@okize](https://github.com/okize)! - feat: avoid babel parser in favor of typescript parser
|
|
14
|
+
|
|
3
15
|
## 1.5.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/eslint.config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
2
2
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
3
3
|
import globals from 'globals';
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ const config = [
|
|
|
11
11
|
languageOptions: {
|
|
12
12
|
sourceType: 'module',
|
|
13
13
|
ecmaVersion: 2024,
|
|
14
|
-
parser:
|
|
14
|
+
parser: typescriptParser,
|
|
15
15
|
parserOptions: {
|
|
16
16
|
requireConfigFile: false,
|
|
17
17
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"type": "module",
|
|
@@ -39,8 +39,6 @@
|
|
|
39
39
|
"test:export": "check-export-map"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@babel/core": "^7.28.5",
|
|
43
|
-
"@babel/eslint-parser": "^7.28.5",
|
|
44
42
|
"@eslint/compat": "^2.0.0",
|
|
45
43
|
"@eslint/js": "^9.39.2",
|
|
46
44
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
@@ -70,7 +68,7 @@
|
|
|
70
68
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
71
69
|
"eslint-plugin-testing-library": "^7.14.0",
|
|
72
70
|
"eslint-plugin-vitest": "^0.5.4",
|
|
73
|
-
"globals": "^
|
|
71
|
+
"globals": "^17.0.0",
|
|
74
72
|
"globals-vitest": "^4.0.15"
|
|
75
73
|
},
|
|
76
74
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
2
|
import globals from 'globals';
|
|
3
|
-
import
|
|
3
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
4
4
|
import jsPlugin from '@eslint/js';
|
|
5
5
|
import stylisticPlugin from '@stylistic/eslint-plugin';
|
|
6
6
|
import filenamesPlugin from 'eslint-plugin-filenames';
|
|
@@ -23,7 +23,7 @@ export default [
|
|
|
23
23
|
languageOptions: {
|
|
24
24
|
sourceType: 'module',
|
|
25
25
|
ecmaVersion: 2024,
|
|
26
|
-
parser:
|
|
26
|
+
parser: typescriptParser,
|
|
27
27
|
parserOptions: {
|
|
28
28
|
requireConfigFile: false,
|
|
29
29
|
},
|
package/src/rules/typescript.mjs
CHANGED
|
@@ -53,6 +53,9 @@ export default {
|
|
|
53
53
|
// decision: prefer @typescript-eslint/only-throw-error
|
|
54
54
|
'no-throw-literal': 'off',
|
|
55
55
|
|
|
56
|
+
// decision: this conflicts with @typescript-eslint/init-declarations
|
|
57
|
+
'no-undef-init': 'error',
|
|
58
|
+
|
|
56
59
|
// decision: prefer @typescript-eslint/no-unused-expressions
|
|
57
60
|
'no-unused-expressions': 'off',
|
|
58
61
|
|
|
@@ -35,9 +35,7 @@
|
|
|
35
35
|
"AudioScheduledSourceNode": false,
|
|
36
36
|
"AudioSinkInfo": false,
|
|
37
37
|
"AudioWorklet": false,
|
|
38
|
-
"AudioWorkletGlobalScope": false,
|
|
39
38
|
"AudioWorkletNode": false,
|
|
40
|
-
"AudioWorkletProcessor": false,
|
|
41
39
|
"AuthenticatorAssertionResponse": false,
|
|
42
40
|
"AuthenticatorAttestationResponse": false,
|
|
43
41
|
"AuthenticatorResponse": false,
|
|
@@ -116,6 +114,7 @@
|
|
|
116
114
|
"CSSSkewY": false,
|
|
117
115
|
"CSSStartingStyleRule": false,
|
|
118
116
|
"CSSStyleDeclaration": false,
|
|
117
|
+
"CSSStyleProperties": false,
|
|
119
118
|
"CSSStyleRule": false,
|
|
120
119
|
"CSSStyleSheet": false,
|
|
121
120
|
"CSSStyleValue": false,
|
|
@@ -778,6 +777,7 @@
|
|
|
778
777
|
"TaskController": false,
|
|
779
778
|
"TaskPriorityChangeEvent": false,
|
|
780
779
|
"TaskSignal": false,
|
|
780
|
+
"Temporal": false,
|
|
781
781
|
"Text": false,
|
|
782
782
|
"TextDecoder": false,
|
|
783
783
|
"TextDecoderStream": false,
|
|
@@ -881,7 +881,6 @@
|
|
|
881
881
|
"WindowControlsOverlayGeometryChangeEvent": false,
|
|
882
882
|
"Worker": false,
|
|
883
883
|
"Worklet": false,
|
|
884
|
-
"WorkletGlobalScope": false,
|
|
885
884
|
"WritableStream": false,
|
|
886
885
|
"WritableStreamDefaultController": false,
|
|
887
886
|
"WritableStreamDefaultWriter": false,
|
|
@@ -953,8 +952,6 @@
|
|
|
953
952
|
"credentialless": false,
|
|
954
953
|
"crossOriginIsolated": false,
|
|
955
954
|
"crypto": false,
|
|
956
|
-
"currentFrame": false,
|
|
957
|
-
"currentTime": false,
|
|
958
955
|
"customElements": false,
|
|
959
956
|
"devicePixelRatio": false,
|
|
960
957
|
"dispatchEvent": false,
|
|
@@ -1131,14 +1128,12 @@
|
|
|
1131
1128
|
"prompt": false,
|
|
1132
1129
|
"queryLocalFonts": false,
|
|
1133
1130
|
"queueMicrotask": false,
|
|
1134
|
-
"registerProcessor": false,
|
|
1135
1131
|
"removeEventListener": false,
|
|
1136
1132
|
"reportError": false,
|
|
1137
1133
|
"requestAnimationFrame": false,
|
|
1138
1134
|
"requestIdleCallback": false,
|
|
1139
1135
|
"resizeBy": false,
|
|
1140
1136
|
"resizeTo": false,
|
|
1141
|
-
"sampleRate": false,
|
|
1142
1137
|
"scheduler": false,
|
|
1143
1138
|
"screen": false,
|
|
1144
1139
|
"screenLeft": false,
|