eslint-config-seek 14.3.2 → 14.5.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 +29 -2
  2. package/package.json +5 -5
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
 
@@ -94,7 +98,6 @@ const settings = {
94
98
  module.exports = [
95
99
  {
96
100
  plugins: {
97
- 'import-x': importX,
98
101
  jest: jestPlugin,
99
102
  cypress,
100
103
  '@typescript-eslint': tseslint.plugin,
@@ -125,6 +128,21 @@ module.exports = [
125
128
  rules: baseRules,
126
129
  },
127
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
+ },
128
146
  ...[...tseslint.configs.recommended, ...tseslint.configs.stylistic].map(
129
147
  ({ plugins, ...config }) => ({
130
148
  ...config,
@@ -156,6 +174,15 @@ module.exports = [
156
174
  '@typescript-eslint/ban-ts-comment': OFF,
157
175
  '@typescript-eslint/no-explicit-any': OFF,
158
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
+ ],
159
186
  '@typescript-eslint/no-empty-function': OFF,
160
187
  '@typescript-eslint/no-empty-interface': OFF,
161
188
  '@typescript-eslint/no-inferrable-types': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "14.3.2",
3
+ "version": "14.5.0",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -21,9 +21,9 @@
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
- "eslint-plugin-import-x": "4.6.1",
26
+ "eslint-plugin-import-x": "^4.9.0",
27
27
  "eslint-plugin-jest": "^28.8.0",
28
28
  "eslint-plugin-react": "^7.35.0",
29
29
  "eslint-plugin-react-hooks": "^5.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.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",