eslint-config-seek 14.5.2 → 14.6.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.
Files changed (2) hide show
  1. package/base.js +24 -1
  2. package/package.json +4 -4
package/base.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const importX = require('eslint-plugin-import-x');
2
2
  const globals = require('globals');
3
3
  const jestPlugin = require('eslint-plugin-jest');
4
- const cypress = require('eslint-plugin-cypress/flat');
4
+ const cypress = require('eslint-plugin-cypress');
5
5
  const eslintConfigPrettier = require('eslint-config-prettier');
6
6
  const tseslint = require('typescript-eslint');
7
7
 
@@ -63,6 +63,29 @@ const baseRules = {
63
63
  'no-path-concat': ERROR,
64
64
  'no-process-exit': ERROR,
65
65
  'no-restricted-modules': ERROR,
66
+ 'no-restricted-syntax': [
67
+ ERROR,
68
+ {
69
+ selector: 'MethodDefinition[kind = "get"]',
70
+ message:
71
+ 'Custom getters can cause confusion, particularly if they throw errors. Remove the `get` syntax to specify a regular method instead.',
72
+ },
73
+ {
74
+ selector: 'MethodDefinition[kind = "set"]',
75
+ message:
76
+ 'Custom setters can cause confusion, particularly if they throw errors. Remove the `set` syntax to specify a regular method instead.',
77
+ },
78
+ {
79
+ selector: 'Property[kind = "get"]',
80
+ message:
81
+ 'Custom getters can cause confusion, particularly if they throw errors. Remove the `get` syntax to specify a regular property instead.',
82
+ },
83
+ {
84
+ selector: 'Property[kind = "set"]',
85
+ message:
86
+ 'Custom setters can cause confusion, particularly if they throw errors. Remove the `set` syntax to specify a regular property instead.',
87
+ },
88
+ ],
66
89
  'no-sync': ERROR,
67
90
  'linebreak-style': [ERROR, 'unix'],
68
91
  'new-cap': ERROR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "14.5.2",
3
+ "version": "14.6.0",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "typescript-eslint": "^8.6.0",
23
23
  "eslint-config-prettier": "^10.0.0",
24
24
  "eslint-import-resolver-typescript": "^4.0.0",
25
- "eslint-plugin-cypress": "^4.0.0",
25
+ "eslint-plugin-cypress": "^5.0.0",
26
26
  "eslint-plugin-import-x": "^4.9.0",
27
- "eslint-plugin-jest": "^28.8.0",
27
+ "eslint-plugin-jest": "^29.0.0",
28
28
  "eslint-plugin-react": "^7.35.0",
29
29
  "eslint-plugin-react-hooks": "^5.0.0",
30
30
  "globals": "^16.0.0"
@@ -44,7 +44,7 @@
44
44
  "node": ">=18.18.0"
45
45
  },
46
46
  "volta": {
47
- "node": "22.15.1"
47
+ "node": "22.18.0"
48
48
  },
49
49
  "scripts": {
50
50
  "release": "changeset publish",