eslint-config-seek 0.0.0-fix-naming-convention-rule-format-20250602054747 → 0.0.0-master-20251006023349

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 +25 -2
  2. package/package.json +5 -5
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,
@@ -186,7 +209,7 @@ module.exports = [
186
209
  // This selector opts out of the rule for enums
187
210
  {
188
211
  selector: 'enum',
189
- format: [],
212
+ format: null,
190
213
  },
191
214
  ],
192
215
  '@typescript-eslint/no-empty-function': OFF,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "0.0.0-fix-naming-convention-rule-format-20250602054747",
3
+ "version": "0.0.0-master-20251006023349",
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"
@@ -34,7 +34,7 @@
34
34
  "@changesets/get-github-info": "^0.6.0",
35
35
  "eslint": "^9.8.0",
36
36
  "prettier": "^3.3.3",
37
- "typescript": "~5.8.0"
37
+ "typescript": "~5.9.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "eslint": ">=9.9.1",
@@ -44,7 +44,7 @@
44
44
  "node": ">=18.18.0"
45
45
  },
46
46
  "volta": {
47
- "node": "22.15.1"
47
+ "node": "22.19.0"
48
48
  },
49
49
  "scripts": {
50
50
  "release": "changeset publish",