eslint-config-seek 0.0.0-try-fix-20240925053654 → 0.0.0-try-new-version-20250318131023
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/base.js +5 -12
- package/index.js +1 -2
- package/package.json +9 -10
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');
|
|
4
|
+
const cypress = require('eslint-plugin-cypress/flat');
|
|
5
5
|
const eslintConfigPrettier = require('eslint-config-prettier');
|
|
6
6
|
const tseslint = require('typescript-eslint');
|
|
7
7
|
|
|
@@ -92,7 +92,6 @@ const settings = {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
module.exports = [
|
|
95
|
-
eslintConfigPrettier,
|
|
96
95
|
{
|
|
97
96
|
plugins: {
|
|
98
97
|
'import-x': importX,
|
|
@@ -125,10 +124,10 @@ module.exports = [
|
|
|
125
124
|
settings,
|
|
126
125
|
rules: baseRules,
|
|
127
126
|
},
|
|
127
|
+
eslintConfigPrettier,
|
|
128
128
|
...[...tseslint.configs.recommended, ...tseslint.configs.stylistic].map(
|
|
129
|
-
(config) => ({
|
|
129
|
+
({ plugins, ...config }) => ({
|
|
130
130
|
...config,
|
|
131
|
-
plugins: undefined,
|
|
132
131
|
files: [`**/*.{${tsExtensions}}`],
|
|
133
132
|
}),
|
|
134
133
|
),
|
|
@@ -191,6 +190,7 @@ module.exports = [
|
|
|
191
190
|
// However, there is a pending PR which improves the behaviour of this rule https://github.com/import-js/eslint-plugin-import/pull/2716
|
|
192
191
|
// https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md#inline-type-imports
|
|
193
192
|
'import-x/no-duplicates': [ERROR, { 'prefer-inline': true }],
|
|
193
|
+
'import-x/export': ERROR,
|
|
194
194
|
},
|
|
195
195
|
},
|
|
196
196
|
{
|
|
@@ -208,6 +208,7 @@ module.exports = [
|
|
|
208
208
|
{ commonjs: true, amd: true, ignore: ['.svg$', '^file?'] },
|
|
209
209
|
],
|
|
210
210
|
'import-x/no-duplicates': ERROR,
|
|
211
|
+
'import-x/export': ERROR,
|
|
211
212
|
},
|
|
212
213
|
},
|
|
213
214
|
{
|
|
@@ -232,12 +233,4 @@ module.exports = [
|
|
|
232
233
|
...cypress.configs.recommended,
|
|
233
234
|
files: [`**/cypress/**/*.{${allExtensions}}`],
|
|
234
235
|
},
|
|
235
|
-
{
|
|
236
|
-
files: [`**/cypress/**/*.{${allExtensions}}`],
|
|
237
|
-
languageOptions: {
|
|
238
|
-
globals: {
|
|
239
|
-
...cypress.environments.globals.globals,
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
236
|
];
|
package/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const react = require('eslint-plugin-react');
|
|
2
2
|
const reactHooks = require('eslint-plugin-react-hooks');
|
|
3
3
|
const base = require('./base');
|
|
4
|
-
const { fixupPluginRules } = require('@eslint/compat');
|
|
5
4
|
|
|
6
5
|
const globals = require('globals');
|
|
7
6
|
|
|
@@ -30,7 +29,7 @@ module.exports = [
|
|
|
30
29
|
{
|
|
31
30
|
plugins: {
|
|
32
31
|
react,
|
|
33
|
-
'react-hooks':
|
|
32
|
+
'react-hooks': reactHooks,
|
|
34
33
|
},
|
|
35
34
|
|
|
36
35
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seek",
|
|
3
|
-
"version": "0.0.0-try-
|
|
3
|
+
"version": "0.0.0-try-new-version-20250318131023",
|
|
4
4
|
"description": "ESLint configuration used by SEEK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,23 +19,22 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/seek-oss/eslint-config-seek#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
-
"typescript-eslint": "^8.6.0",
|
|
24
|
-
"eslint-config-prettier": "^9.1.0",
|
|
22
|
+
"eslint-config-prettier": "^10.0.0",
|
|
25
23
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
26
|
-
"eslint-plugin-cypress": "^
|
|
27
|
-
"eslint-plugin-import-x": "
|
|
24
|
+
"eslint-plugin-cypress": "^4.0.0",
|
|
25
|
+
"eslint-plugin-import-x": "https://pkg.pr.new/un-ts/eslint-plugin-import-x@251",
|
|
28
26
|
"eslint-plugin-jest": "^28.8.0",
|
|
29
27
|
"eslint-plugin-react": "^7.35.0",
|
|
30
|
-
"eslint-plugin-react-hooks": "^
|
|
31
|
-
"globals": "^
|
|
28
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
29
|
+
"globals": "^16.0.0",
|
|
30
|
+
"typescript-eslint": "^8.6.0"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@changesets/cli": "^2.27.7",
|
|
35
34
|
"@changesets/get-github-info": "^0.6.0",
|
|
36
35
|
"eslint": "^9.8.0",
|
|
37
36
|
"prettier": "^3.3.3",
|
|
38
|
-
"typescript": "~5.
|
|
37
|
+
"typescript": "~5.7.0"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"eslint": ">=9.9.1",
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
"node": ">=18.18.0"
|
|
46
45
|
},
|
|
47
46
|
"volta": {
|
|
48
|
-
"node": "
|
|
47
|
+
"node": "22.14.0"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"release": "changeset publish",
|