@wistia/eslint-config 2.6.0 → 2.7.0

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/.yarnrc.yml CHANGED
@@ -1,7 +1,12 @@
1
+ approvedGitRepositories:
2
+ - "**"
3
+
1
4
  enableGlobalCache: false
2
5
 
6
+ enableScripts: true
7
+
3
8
  nodeLinker: node-modules
4
9
 
5
- yarnPath: .yarn/releases/yarn-4.13.0.cjs
10
+ npmMinimalAgeGate: 7d
6
11
 
7
- npmMinimalAgeGate: '7d'
12
+ yarnPath: .yarn/releases/yarn-4.14.1.cjs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @wistia/eslint-config
2
2
 
3
+ ## 2.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#468](https://github.com/wistia/eslint-config/pull/468) [`9d23cc3`](https://github.com/wistia/eslint-config/commit/9d23cc3dbcdeea1454e5a13d851313f1106dc11c) Thanks [@okize](https://github.com/okize)! - feat: remove `react-ssr-compatibility` config & rules
8
+
3
9
  ## 2.6.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@wistia/eslint-config",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Wistia's ESLint configurations",
5
- "packageManager": "yarn@4.13.0",
5
+ "packageManager": "yarn@4.14.1",
6
6
  "type": "module",
7
7
  "main": "index.mjs",
8
8
  "engines": {
@@ -16,7 +16,6 @@
16
16
  "./node": "./src/configs/node.mjs",
17
17
  "./playwright": "./src/configs/playwright.mjs",
18
18
  "./react": "./src/configs/react.mjs",
19
- "./react-ssr-compatibility": "./src/configs/react-ssr-compatibility.mjs",
20
19
  "./storybook": "./src/configs/storybook.mjs",
21
20
  "./styled-components": "./src/configs/styled-components.mjs",
22
21
  "./testing-library": "./src/configs/testing-library.mjs",
@@ -43,9 +42,9 @@
43
42
  "@eslint/compat": "^2.0.5",
44
43
  "@eslint/js": "^10.0.1",
45
44
  "@stylistic/eslint-plugin": "^5.10.0",
46
- "@typescript-eslint/eslint-plugin": "^8.58.2",
47
- "@typescript-eslint/parser": "^8.58.2",
48
- "@vitest/eslint-plugin": "^1.6.15",
45
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
46
+ "@typescript-eslint/parser": "^8.59.0",
47
+ "@vitest/eslint-plugin": "^1.6.16",
49
48
  "confusing-browser-globals": "^1.0.11",
50
49
  "eslint-import-resolver-typescript": "^4.4.4",
51
50
  "eslint-plugin-barrel-files": "^3.0.1",
@@ -57,31 +56,28 @@
57
56
  "eslint-plugin-jsx-a11y": "^6.10.2",
58
57
  "eslint-plugin-n": "^17.24.0",
59
58
  "eslint-plugin-no-only-tests": "^3.3.0",
60
- "eslint-plugin-no-typeof-window-undefined": "^0.0.2",
61
- "eslint-plugin-playwright": "^2.10.1",
59
+ "eslint-plugin-playwright": "^2.10.2",
62
60
  "eslint-plugin-prettier": "^5.5.5",
63
61
  "eslint-plugin-promise": "^7.2.1",
64
- "eslint-plugin-react-hooks-ssr": "^0.1.5",
65
- "eslint-plugin-ssr-friendly": "^1.3.0",
66
62
  "eslint-plugin-storybook": "^10.3.5",
67
63
  "eslint-plugin-styled-components-a11y": "^2.2.1",
68
64
  "eslint-plugin-testing-library": "^7.16.2",
69
65
  "globals": "^17.5.0",
70
- "globals-vitest": "^4.1.4"
66
+ "globals-vitest": "^4.1.5"
71
67
  },
72
68
  "devDependencies": {
73
69
  "@changesets/changelog-github": "^0.6.0",
74
- "@changesets/cli": "^2.30.0",
70
+ "@changesets/cli": "^2.31.0",
75
71
  "@commitlint/cli": "^20.5.0",
76
72
  "@commitlint/config-conventional": "^20.5.0",
77
73
  "check-export-map": "^1.3.1",
78
- "eslint": "^10.2.0",
74
+ "eslint": "^10.2.1",
79
75
  "glob": "^13.0.6",
80
76
  "husky": "^9.1.7",
81
- "prettier": "^3.8.2",
77
+ "prettier": "^3.8.3",
82
78
  "storybook": "^10.3.5",
83
- "typescript": "^6.0.2",
84
- "vitest": "^4.1.4"
79
+ "typescript": "^6.0.3",
80
+ "vitest": "^4.1.5"
85
81
  },
86
82
  "peerDependencies": {
87
83
  "eslint": ">= 10",
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.58.2",
67
+ "parser": "typescript-eslint/parser@8.59.0",
68
68
  "parserOptions": {
69
69
  "requireConfigFile": false,
70
70
  },
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.58.2",
67
+ "parser": "typescript-eslint/parser@8.59.0",
68
68
  "parserOptions": {
69
69
  "ecmaVersion": 2024,
70
70
  "project": "./tsconfig.json",
@@ -78,7 +78,7 @@
78
78
  "plugins": [
79
79
  "@",
80
80
  "@stylistic:@stylistic/eslint-plugin@5.10.0",
81
- "@typescript-eslint:@typescript-eslint/eslint-plugin@8.58.2",
81
+ "@typescript-eslint:@typescript-eslint/eslint-plugin@8.59.0",
82
82
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
83
83
  "filenames",
84
84
  "import-x:eslint-plugin-import-x@4.16.2",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "plugins": [
37
37
  "@",
38
- "vitest:vitest@1.6.15",
38
+ "vitest:vitest@1.6.16",
39
39
  "no-only-tests",
40
40
  ],
41
41
  "rules": {
@@ -1,18 +0,0 @@
1
- import { fixupPluginRules } from '@eslint/compat';
2
- import ssrFriendlyPlugin from 'eslint-plugin-ssr-friendly';
3
- import reactHooksSSRPlugin from 'eslint-plugin-react-hooks-ssr';
4
- import noTypeofWindowUndefinedPlugin from 'eslint-plugin-no-typeof-window-undefined';
5
- import reactSSRCompatibilityRules from '../rules/react-ssr-compatibility.mjs';
6
-
7
- export default [
8
- {
9
- plugins: {
10
- 'ssr-friendly': fixupPluginRules(ssrFriendlyPlugin),
11
- 'react-hooks-ssr': fixupPluginRules(reactHooksSSRPlugin),
12
- 'no-typeof-window-undefined': fixupPluginRules(noTypeofWindowUndefinedPlugin),
13
- },
14
- rules: {
15
- ...reactSSRCompatibilityRules,
16
- },
17
- },
18
- ];
@@ -1,35 +0,0 @@
1
- // only add rules related to maintaining SSR compatibility
2
- // see:
3
- // - https://github.com/kopiro/eslint-plugin-ssr-friendly
4
- // - https://github.com/correttojs/eslint-plugin-react-hooks-ssr
5
- // - https://github.com/nirtamir2/eslint-plugin-no-typeof-window-undefined
6
-
7
- export default {
8
- // Disallow use of DOM globals in module and global scope, as this will break any import/require in a NodeJS environment.
9
- // https://github.com/kopiro/eslint-plugin-ssr-friendly#no-dom-globals-in-module-scope
10
- 'ssr-friendly/no-dom-globals-in-module-scope': 'error',
11
-
12
- // Disallow use of DOM globals in class constructors, as this will break SSR if you're instantiating this class as singleton or you're rendering this component.
13
- // https://github.com/kopiro/eslint-plugin-ssr-friendly#no-dom-globals-in-constructor
14
- 'ssr-friendly/no-dom-globals-in-constructor': 'error',
15
-
16
- // Disallow use of DOM globals in render() method of a React class-component, as this will break SSR if you're rendering this component.
17
- // https://github.com/kopiro/eslint-plugin-ssr-friendly#no-dom-globals-in-react-cc-render
18
- 'ssr-friendly/no-dom-globals-in-react-cc-render': 'error',
19
-
20
- // Disallow use of DOM globals in the render-cycle of a React FC, as this will break SSR if you're rendering this component.
21
- // https://github.com/kopiro/eslint-plugin-ssr-friendly#no-dom-globals-in-react-fc
22
- 'ssr-friendly/no-dom-globals-in-react-fc': 'error',
23
-
24
- // forbid DOM globals within react server side rendering
25
- // a global within `useEffect` or custom hook is allowed
26
- // a global within a function prefixed by `async` (eg. `asyncMyFunc`) is allowed
27
- // a global within a `useState`, `useReducer` and `useMemo` callback is forbidden
28
- // a global within a React `Component` is forbidden
29
- 'react-hooks-ssr/react-hooks-global-ssr': 'error',
30
-
31
- // avoid checking for window since it is supported by Deno
32
- // prefer `typeof document === "undefined"` instead
33
- // https://github.com/nirtamir2/eslint-plugin-no-typeof-window-undefined#no-typeof-window-undefined
34
- 'no-typeof-window-undefined/no-typeof-window-undefined': 'error',
35
- };