@wistia/eslint-config 0.41.2 → 0.42.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/package.json +16 -18
- package/configs/eslint/cypress.cjs +0 -9
- package/rules/eslint/cypress.cjs +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"description": "Wistia's ESLint configurations",
|
|
5
5
|
"packageManager": "yarn@4.9.2",
|
|
6
6
|
"main": "react.js",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
"./package.json": "./package.json",
|
|
13
13
|
".": "./configs/eslint/default.cjs",
|
|
14
|
-
"./cypress": "./configs/eslint/cypress.cjs",
|
|
15
14
|
"./functional-programming": "./configs/eslint/functional-programming.cjs",
|
|
16
15
|
"./jest": "./configs/eslint/jest.cjs",
|
|
17
16
|
"./node": "./configs/eslint/node.cjs",
|
|
@@ -54,31 +53,30 @@
|
|
|
54
53
|
"author": "Wistia Engineering",
|
|
55
54
|
"license": "UNLICENSED",
|
|
56
55
|
"dependencies": {
|
|
57
|
-
"@babel/core": "^7.
|
|
58
|
-
"@babel/eslint-parser": "^7.
|
|
56
|
+
"@babel/core": "^7.28.3",
|
|
57
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
59
58
|
"@babel/preset-react": "^7.27.1",
|
|
60
59
|
"@jantimon/stylelint-enforce-pseudo-ampersand": "^1.0.2",
|
|
61
|
-
"@rushstack/eslint-patch": "^1.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
63
|
-
"@typescript-eslint/parser": "^8.
|
|
60
|
+
"@rushstack/eslint-patch": "^1.12.0",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
62
|
+
"@typescript-eslint/parser": "^8.42.0",
|
|
64
63
|
"confusing-browser-globals": "^1.0.11",
|
|
65
64
|
"eslint": "^8.57.1",
|
|
66
|
-
"eslint-config-prettier": "^10.1.
|
|
67
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
68
|
-
"eslint-plugin-cypress": "^3.6.0",
|
|
65
|
+
"eslint-config-prettier": "^10.1.8",
|
|
66
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
69
67
|
"eslint-plugin-filenames": "^1.3.2",
|
|
70
68
|
"eslint-plugin-fp": "^2.3.0",
|
|
71
|
-
"eslint-plugin-import": "^2.
|
|
69
|
+
"eslint-plugin-import": "^2.32.0",
|
|
72
70
|
"eslint-plugin-jest": "^28.14.0",
|
|
73
71
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
74
72
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
75
73
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
76
|
-
"eslint-plugin-n": "^17.
|
|
74
|
+
"eslint-plugin-n": "^17.21.3",
|
|
77
75
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
78
76
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
|
79
77
|
"eslint-plugin-no-typeof-window-undefined": "^0.0.2",
|
|
80
78
|
"eslint-plugin-observers": "^1.0.1",
|
|
81
|
-
"eslint-plugin-prettier": "^5.5.
|
|
79
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
82
80
|
"eslint-plugin-promise": "^7.2.1",
|
|
83
81
|
"eslint-plugin-react": "^7.37.5",
|
|
84
82
|
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
@@ -88,26 +86,26 @@
|
|
|
88
86
|
"eslint-plugin-ssr-friendly": "^1.3.0",
|
|
89
87
|
"eslint-plugin-storybook": "^0.12.0",
|
|
90
88
|
"eslint-plugin-styled-components-a11y": "^2.2.1",
|
|
91
|
-
"eslint-plugin-testing-library": "^7.
|
|
89
|
+
"eslint-plugin-testing-library": "^7.6.8",
|
|
92
90
|
"eslint-plugin-vitest": "^0.5.4",
|
|
93
91
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
94
92
|
"postcss": "^8.5.6",
|
|
95
93
|
"postcss-scss": "^4.0.9",
|
|
96
94
|
"postcss-styled-syntax": "^0.7.1",
|
|
97
|
-
"prettier": "^3.
|
|
98
|
-
"stylelint": "^16.
|
|
95
|
+
"prettier": "^3.6.2",
|
|
96
|
+
"stylelint": "^16.23.1",
|
|
99
97
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
100
98
|
"stylelint-prettier": "^5.0.3",
|
|
101
99
|
"stylelint-scss": "^6.12.1"
|
|
102
100
|
},
|
|
103
101
|
"devDependencies": {
|
|
104
102
|
"@changesets/changelog-github": "^0.5.1",
|
|
105
|
-
"@changesets/cli": "^2.29.
|
|
103
|
+
"@changesets/cli": "^2.29.6",
|
|
106
104
|
"@commitlint/cli": "^19.8.1",
|
|
107
105
|
"@commitlint/config-conventional": "^19.8.1",
|
|
108
106
|
"check-export-map": "^1.3.1",
|
|
109
107
|
"husky": "^9.1.7",
|
|
110
|
-
"typescript": "^5.
|
|
108
|
+
"typescript": "^5.9.2",
|
|
111
109
|
"vitest": "^3.2.4"
|
|
112
110
|
}
|
|
113
111
|
}
|
package/rules/eslint/cypress.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// only add cypress rules
|
|
2
|
-
// see: https://github.com/cypress-io/eslint-plugin-cypress#rules
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
plugins: ['eslint-plugin-no-only-tests', 'eslint-plugin-cypress'],
|
|
6
|
-
|
|
7
|
-
rules: {
|
|
8
|
-
// Prevent focused tests (.only)
|
|
9
|
-
// https://github.com/levibuzolic/eslint-plugin-no-only-tests#usage
|
|
10
|
-
'no-only-tests/no-only-tests': 'error',
|
|
11
|
-
|
|
12
|
-
// Prevent assigning return values of cy calls
|
|
13
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-assigning-return-values.md
|
|
14
|
-
'cypress/no-assigning-return-values': 'error',
|
|
15
|
-
|
|
16
|
-
// Prevent waiting for arbitrary time periods
|
|
17
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-unnecessary-waiting.md
|
|
18
|
-
'cypress/no-unnecessary-waiting': 'error',
|
|
19
|
-
|
|
20
|
-
// Prevent using async/await in Cypress test case
|
|
21
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-async-tests.md
|
|
22
|
-
'cypress/no-async-tests': 'error',
|
|
23
|
-
|
|
24
|
-
// Disallow using `force: true` with action commands
|
|
25
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-force.md
|
|
26
|
-
'cypress/no-force': 'error',
|
|
27
|
-
|
|
28
|
-
// Ensure screenshots are preceded by an assertion
|
|
29
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/assertion-before-screenshot.md
|
|
30
|
-
'cypress/assertion-before-screenshot': 'error',
|
|
31
|
-
|
|
32
|
-
// Only allow data-\* attribute selectors (require-data-selectors)
|
|
33
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/require-data-selectors.md
|
|
34
|
-
'cypress/require-data-selectors': 'error',
|
|
35
|
-
|
|
36
|
-
// Disallow `cy.pause()` parent command
|
|
37
|
-
// https://github.com/cypress-io/eslint-plugin-cypress/blob/master/docs/rules/no-pause.md
|
|
38
|
-
'cypress/no-pause': 'error',
|
|
39
|
-
},
|
|
40
|
-
};
|