@shelf/eslint-config 5.2.3 → 5.3.2

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 CHANGED
@@ -2,7 +2,7 @@ import jestFormatting from 'eslint-plugin-jest-formatting';
2
2
  import prettier from 'eslint-plugin-prettier';
3
3
  import jestPlugin from 'eslint-plugin-jest';
4
4
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
5
- import stylisticJs from '@stylistic/eslint-plugin-js';
5
+ import stylistic from '@stylistic/eslint-plugin';
6
6
  import env from './common/env.js';
7
7
  import paddingLineBetweenStatements from './rules/padding-line-between-statements.js';
8
8
  import jestRules from './rules/jest.js';
@@ -25,7 +25,7 @@ export default [
25
25
  {
26
26
  plugins: {
27
27
  prettier,
28
- '@stylistic/js': stylisticJs,
28
+ '@stylistic': stylistic,
29
29
  },
30
30
 
31
31
  languageOptions: {
@@ -54,7 +54,7 @@ export default [
54
54
  'new-cap': 'error',
55
55
  'no-extend-native': 'error',
56
56
  'no-use-before-define': ['error', 'nofunc'],
57
- '@stylistic/js/multiline-comment-style': ['error', 'separate-lines'],
57
+ '@stylistic/multiline-comment-style': ['error', 'separate-lines'],
58
58
  'require-await': 'error',
59
59
  },
60
60
  },
@@ -46,7 +46,7 @@ export default [
46
46
  'no-console': 'error',
47
47
  'react-hooks/exhaustive-deps': 'error',
48
48
  'sonarjs/cognitive-complexity': ['error', 18],
49
- '@stylistic/js/multiline-comment-style': 'off',
49
+ '@stylistic/multiline-comment-style': 'off',
50
50
  'no-unreachable': 'error',
51
51
  'react/react-in-jsx-scope': 'off',
52
52
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/eslint-config",
3
- "version": "5.2.3",
3
+ "version": "5.3.2",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",
@@ -29,51 +29,47 @@
29
29
  "eslint",
30
30
  "eslintconfig"
31
31
  ],
32
- "resolutions": {
33
- "strip-ansi": "7.1.0"
34
- },
35
32
  "type": "module",
36
33
  "dependencies": {
37
- "@eslint/compat": "1.3.1",
34
+ "@eslint/compat": "2.0.0",
38
35
  "@eslint/eslintrc": "3.3.1",
39
- "@eslint/js": "9.30.0",
40
- "@stylistic/eslint-plugin-js": "4.4.1",
41
- "@typescript-eslint/eslint-plugin": "8.35.1",
42
- "@typescript-eslint/parser": "8.35.1",
43
- "eslint-config-next": "15.3.4",
44
- "eslint-config-prettier": "10.1.5",
36
+ "@eslint/js": "9.39.1",
37
+ "@stylistic/eslint-plugin": "5.6.1",
38
+ "@typescript-eslint/eslint-plugin": "8.47.0",
39
+ "@typescript-eslint/parser": "8.47.0",
40
+ "eslint-config-next": "16.0.3",
41
+ "eslint-config-prettier": "10.1.8",
45
42
  "eslint-plugin-babel": "5.3.1",
46
43
  "eslint-plugin-import": "2.32.0",
47
- "eslint-plugin-jest": "29.0.1",
44
+ "eslint-plugin-jest": "29.2.0",
48
45
  "eslint-plugin-jest-formatting": "3.1.0",
49
46
  "eslint-plugin-jsx": "0.1.0",
50
- "eslint-plugin-n": "17.20.0",
51
- "eslint-plugin-prettier": "5.5.1",
47
+ "eslint-plugin-n": "17.23.1",
48
+ "eslint-plugin-prettier": "5.5.4",
52
49
  "eslint-plugin-react": "7.37.5",
53
- "eslint-plugin-react-hooks": "5.2.0",
50
+ "eslint-plugin-react-hooks": "7.0.1",
54
51
  "eslint-plugin-shelf-no-need-lodash-methods": "2.0.8",
55
- "eslint-plugin-sonarjs": "3.0.4",
56
- "eslint-plugin-testing-library": "7.5.3",
52
+ "eslint-plugin-sonarjs": "3.0.5",
53
+ "eslint-plugin-testing-library": "7.13.4",
57
54
  "eslint-plugin-you-dont-need-lodash-underscore": "6.14.0",
58
- "globals": "16.2.0",
59
- "typescript-eslint": "8.35.1"
55
+ "globals": "16.5.0",
56
+ "typescript-eslint": "8.47.0"
60
57
  },
61
58
  "devDependencies": {
62
- "eslint": "9.30.1",
59
+ "eslint": "9.39.1",
63
60
  "husky": "9.1.7",
64
- "lint-staged": "16.1.2",
61
+ "lint-staged": "16.2.7",
65
62
  "prettier": "3.6.2"
66
63
  },
67
64
  "peerDependencies": {
68
65
  "eslint": "9.x",
69
66
  "prettier": "3.x"
70
67
  },
71
- "lint-staged": {
72
- "*.{html,md,yml}": "prettier --write",
73
- "*.{ts,js,json}": "eslint --fix",
74
- ".circleci/config.yml": ".husky/validate-circleci-config.sh"
75
- },
76
68
  "publishConfig": {
77
69
  "access": "public"
70
+ },
71
+ "lint-staged": {
72
+ "*.{html,md,yml}": "prettier --write",
73
+ "*.{ts,js,json}": "eslint --fix"
78
74
  }
79
75
  }
@@ -1,5 +1,5 @@
1
1
  export default {
2
- '@stylistic/js/padding-line-between-statements': [
2
+ '@stylistic/padding-line-between-statements': [
3
3
  'error',
4
4
  {
5
5
  blankLine: 'always',
package/typescript.js CHANGED
@@ -12,7 +12,7 @@ import tsEslint from 'typescript-eslint';
12
12
  import jestPlugin from 'eslint-plugin-jest';
13
13
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
14
14
  import shelfNoLodash from 'eslint-plugin-shelf-no-need-lodash-methods';
15
- import stylisticJs from '@stylistic/eslint-plugin-js';
15
+ import stylistic from '@stylistic/eslint-plugin';
16
16
  import env from './common/env.js';
17
17
  import jestRules from './rules/jest.js';
18
18
  import paddingLineBetweenStatements from './rules/padding-line-between-statements.js';
@@ -53,7 +53,7 @@ export default [
53
53
  prettier,
54
54
  import: fixupPluginRules(_import),
55
55
  node,
56
- '@stylistic/js': stylisticJs,
56
+ '@stylistic': stylistic,
57
57
  },
58
58
 
59
59
  languageOptions: {
@@ -107,7 +107,7 @@ export default [
107
107
  'no-extend-native': 'error',
108
108
  'no-use-before-define': 'off',
109
109
  ...consistentTypeImports,
110
- '@stylistic/js/multiline-comment-style': ['error', 'separate-lines'],
110
+ '@stylistic/multiline-comment-style': ['error', 'separate-lines'],
111
111
  'arrow-body-style': [
112
112
  'error',
113
113
  'as-needed',