@shelf/eslint-config 6.0.0 → 6.1.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.
package/README.md CHANGED
@@ -41,7 +41,7 @@ export default [
41
41
 
42
42
  ```sh
43
43
  $ pnpm version patch
44
- $ git push --tags
44
+ $ git push --follow-tags
45
45
  ```
46
46
 
47
47
  ## License
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": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",
@@ -27,31 +27,31 @@
27
27
  "type": "module",
28
28
  "dependencies": {
29
29
  "@eslint/compat": "2.0.2",
30
- "@eslint/eslintrc": "3.3.3",
30
+ "@eslint/eslintrc": "3.3.4",
31
31
  "@eslint/js": "10.0.1",
32
- "@stylistic/eslint-plugin": "5.8.0",
33
- "@typescript-eslint/eslint-plugin": "8.54.0",
34
- "@typescript-eslint/parser": "8.54.0",
32
+ "@stylistic/eslint-plugin": "5.9.0",
33
+ "@typescript-eslint/eslint-plugin": "8.56.1",
34
+ "@typescript-eslint/parser": "8.56.1",
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.13.0",
39
+ "eslint-plugin-jest": "29.15.0",
40
40
  "eslint-plugin-jest-formatting": "3.1.0",
41
41
  "eslint-plugin-jsx": "0.1.0",
42
- "eslint-plugin-n": "17.23.2",
42
+ "eslint-plugin-n": "17.24.0",
43
43
  "eslint-plugin-prettier": "5.5.5",
44
44
  "eslint-plugin-react": "7.37.5",
45
45
  "eslint-plugin-react-hooks": "7.0.1",
46
46
  "eslint-plugin-shelf-no-need-lodash-methods": "2.0.8",
47
- "eslint-plugin-sonarjs": "3.0.6",
48
- "eslint-plugin-testing-library": "7.15.4",
47
+ "eslint-plugin-sonarjs": "4.0.0",
48
+ "eslint-plugin-testing-library": "7.16.0",
49
49
  "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
50
50
  "globals": "17.3.0",
51
- "typescript-eslint": "8.54.0"
51
+ "typescript-eslint": "8.56.1"
52
52
  },
53
53
  "devDependencies": {
54
- "eslint": "10.0.0",
54
+ "eslint": "10.0.2",
55
55
  "husky": "9.1.7",
56
56
  "lint-staged": "16.2.7",
57
57
  "prettier": "3.8.1"
@@ -37,6 +37,11 @@ export default {
37
37
  name: 'uuid',
38
38
  message: "Please use import {randomUUID} from 'crypto' instead!",
39
39
  },
40
+ {
41
+ name: 'chalk',
42
+ message:
43
+ "Please use import {styleText} from 'node:util' instead! See https://nodejs.org/en/blog/migrations/chalk-to-styletext",
44
+ },
40
45
  {
41
46
  name: 'react-outside-click-handler',
42
47
  message:
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,