@shelf/eslint-config 5.4.1 → 6.0.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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ Read our [style guide](./docs/style-guide.md)
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- $ yarn add @shelf/eslint-config --dev
10
+ $ pnpm add --save-dev --save-exact @shelf/eslint-config
11
11
  ```
12
12
 
13
13
  ## Usage
@@ -40,7 +40,7 @@ export default [
40
40
  ## Publish
41
41
 
42
42
  ```sh
43
- $ yarn version
43
+ $ pnpm version patch
44
44
  $ git push --tags
45
45
  ```
46
46
 
package/base.js CHANGED
@@ -3,6 +3,7 @@ import prettier from 'eslint-plugin-prettier';
3
3
  import jestPlugin from 'eslint-plugin-jest';
4
4
  import prettierRecommended from 'eslint-plugin-prettier/recommended';
5
5
  import stylistic from '@stylistic/eslint-plugin';
6
+ import {fixupPluginRules} from '@eslint/compat';
6
7
  import env from './common/env.js';
7
8
  import paddingLineRules from './rules/padding-line-between-statements.js';
8
9
  import jestRules from './rules/jest.js';
@@ -11,12 +12,14 @@ import importOrder from './rules/import-order.js';
11
12
  import sortImports from './rules/sort-imports.js';
12
13
  import comments from './rules/comments.js';
13
14
 
15
+ const jestFormattingCompat = fixupPluginRules(jestFormatting);
16
+
14
17
  export default [
15
18
  {
16
- files: jestFormatting.configs.strict.overrides[0].files,
17
- rules: jestFormatting.configs.strict.overrides[0].rules,
19
+ files: jestFormattingCompat.configs.strict.overrides[0].files,
20
+ rules: jestFormattingCompat.configs.strict.overrides[0].rules,
18
21
  plugins: {
19
- 'jest-formatting': jestFormatting,
22
+ 'jest-formatting': jestFormattingCompat,
20
23
  },
21
24
  },
22
25
  jestPlugin.configs['flat/recommended'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/eslint-config",
3
- "version": "5.4.1",
3
+ "version": "6.0.1",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",
@@ -10,7 +10,7 @@
10
10
  "url": "shelf.io"
11
11
  },
12
12
  "engines": {
13
- "node": ">=8.10"
13
+ "node": "^20.19.0 || ^22.13.0 || >=24.0.0"
14
14
  },
15
15
  "files": [
16
16
  "common",
@@ -26,17 +26,17 @@
26
26
  ],
27
27
  "type": "module",
28
28
  "dependencies": {
29
- "@eslint/compat": "2.0.1",
29
+ "@eslint/compat": "2.0.2",
30
30
  "@eslint/eslintrc": "3.3.3",
31
- "@eslint/js": "9.39.2",
32
- "@stylistic/eslint-plugin": "5.7.1",
31
+ "@eslint/js": "10.0.1",
32
+ "@stylistic/eslint-plugin": "5.8.0",
33
33
  "@typescript-eslint/eslint-plugin": "8.54.0",
34
34
  "@typescript-eslint/parser": "8.54.0",
35
35
  "eslint-config-next": "16.1.6",
36
36
  "eslint-config-prettier": "10.1.8",
37
37
  "eslint-plugin-babel": "5.3.1",
38
38
  "eslint-plugin-import": "2.32.0",
39
- "eslint-plugin-jest": "29.12.1",
39
+ "eslint-plugin-jest": "29.13.0",
40
40
  "eslint-plugin-jest-formatting": "3.1.0",
41
41
  "eslint-plugin-jsx": "0.1.0",
42
42
  "eslint-plugin-n": "17.23.2",
@@ -47,17 +47,17 @@
47
47
  "eslint-plugin-sonarjs": "3.0.6",
48
48
  "eslint-plugin-testing-library": "7.15.4",
49
49
  "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
50
- "globals": "17.2.0",
50
+ "globals": "17.3.0",
51
51
  "typescript-eslint": "8.54.0"
52
52
  },
53
53
  "devDependencies": {
54
- "eslint": "9.39.2",
54
+ "eslint": "10.0.0",
55
55
  "husky": "9.1.7",
56
56
  "lint-staged": "16.2.7",
57
57
  "prettier": "3.8.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "eslint": "9.x",
60
+ "eslint": "10.x",
61
61
  "prettier": "3.x"
62
62
  },
63
63
  "publishConfig": {
package/typescript.js CHANGED
@@ -32,15 +32,16 @@ const compat = new FlatCompat({
32
32
  baseDirectory: __dirname,
33
33
  recommendedConfig: js.configs.recommended,
34
34
  });
35
+ const jestFormattingCompat = fixupPluginRules(jestFormatting);
35
36
 
36
37
  export default [
37
38
  ...compat.extends('plugin:you-dont-need-lodash-underscore/compatible'),
38
39
  ...tsEslint.configs.recommended,
39
40
  {
40
- files: jestFormatting.configs.strict.overrides[0].files,
41
- rules: jestFormatting.configs.strict.overrides[0].rules,
41
+ files: jestFormattingCompat.configs.strict.overrides[0].files,
42
+ rules: jestFormattingCompat.configs.strict.overrides[0].rules,
42
43
  plugins: {
43
- 'jest-formatting': jestFormatting,
44
+ 'jest-formatting': jestFormattingCompat,
44
45
  },
45
46
  },
46
47
  jestPlugin.configs['flat/recommended'],
@@ -49,7 +50,7 @@ export default [
49
50
  shelfNoLodash.configs.all,
50
51
  {
51
52
  plugins: {
52
- 'jest-formatting': jestFormatting,
53
+ 'jest-formatting': jestFormattingCompat,
53
54
  prettier,
54
55
  import: fixupPluginRules(_import),
55
56
  node,