eslint-config-seek 14.4.0 → 14.5.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.
Files changed (2) hide show
  1. package/base.js +34 -1
  2. package/package.json +4 -4
package/base.js CHANGED
@@ -6,6 +6,7 @@ const eslintConfigPrettier = require('eslint-config-prettier');
6
6
  const tseslint = require('typescript-eslint');
7
7
 
8
8
  const OFF = 0;
9
+ const WARN = 1;
9
10
  const ERROR = 2;
10
11
 
11
12
  const baseRules = {
@@ -13,7 +14,6 @@ const baseRules = {
13
14
  'no-console': ERROR,
14
15
  'no-unexpected-multiline': ERROR,
15
16
  'block-scoped-var': ERROR,
16
- curly: [ERROR, 'all'],
17
17
  'default-case': ERROR,
18
18
  'dot-notation': ERROR,
19
19
  eqeqeq: [ERROR, 'always', { null: 'ignore' }],
@@ -81,6 +81,10 @@ const baseRules = {
81
81
  'no-return-await': OFF,
82
82
  };
83
83
 
84
+ const eslintConfigPrettierOverrideRules = {
85
+ curly: [ERROR, 'all'],
86
+ };
87
+
84
88
  const { js: jsExtensions, ts: tsExtensions } = require('./extensions');
85
89
  const allExtensions = [...jsExtensions, ...tsExtensions];
86
90
 
@@ -124,6 +128,21 @@ module.exports = [
124
128
  rules: baseRules,
125
129
  },
126
130
  eslintConfigPrettier,
131
+ {
132
+ languageOptions: {
133
+ globals: {
134
+ ...globals.node,
135
+ },
136
+
137
+ parserOptions: {
138
+ requireConfigFile: false,
139
+ ecmaVersion: 'latest',
140
+ sourceType: 'module',
141
+ },
142
+ },
143
+ settings,
144
+ rules: eslintConfigPrettierOverrideRules,
145
+ },
127
146
  ...[...tseslint.configs.recommended, ...tseslint.configs.stylistic].map(
128
147
  ({ plugins, ...config }) => ({
129
148
  ...config,
@@ -155,6 +174,20 @@ module.exports = [
155
174
  '@typescript-eslint/ban-ts-comment': OFF,
156
175
  '@typescript-eslint/no-explicit-any': OFF,
157
176
  '@typescript-eslint/explicit-function-return-type': OFF,
177
+ '@typescript-eslint/naming-convention': [
178
+ // TODO - upgrade to ERROR in next major version
179
+ WARN,
180
+ {
181
+ selector: 'typeLike',
182
+ format: ['PascalCase'],
183
+ leadingUnderscore: 'allow',
184
+ },
185
+ // 'typeLike' includes enums
186
+ // This selector opts out of the rule for enums
187
+ {
188
+ selector: 'enum',
189
+ },
190
+ ],
158
191
  '@typescript-eslint/no-empty-function': OFF,
159
192
  '@typescript-eslint/no-empty-interface': OFF,
160
193
  '@typescript-eslint/no-inferrable-types': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "14.4.0",
3
+ "version": "14.5.1",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "typescript-eslint": "^8.6.0",
23
23
  "eslint-config-prettier": "^10.0.0",
24
- "eslint-import-resolver-typescript": "^3.6.3",
24
+ "eslint-import-resolver-typescript": "^4.0.0",
25
25
  "eslint-plugin-cypress": "^4.0.0",
26
26
  "eslint-plugin-import-x": "^4.9.0",
27
27
  "eslint-plugin-jest": "^28.8.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.7.0"
37
+ "typescript": "~5.8.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.14.0"
47
+ "node": "22.15.1"
48
48
  },
49
49
  "scripts": {
50
50
  "release": "changeset publish",