@shelf/eslint-config 5.3.0 → 5.3.3

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.3.0",
3
+ "version": "5.3.3",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",
@@ -29,39 +29,36 @@
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.38.0",
42
- "@typescript-eslint/parser": "8.38.0",
43
- "eslint-config-next": "15.4.4",
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",
44
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.21.0",
51
- "eslint-plugin-prettier": "5.5.3",
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.6.1",
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.38.0"
55
+ "globals": "16.5.0",
56
+ "typescript-eslint": "8.47.0"
60
57
  },
61
58
  "devDependencies": {
62
- "eslint": "9.32.0",
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": {
@@ -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';
@@ -28,6 +28,7 @@ import overrides from './common/overrides.js';
28
28
 
29
29
  const __filename = fileURLToPath(import.meta.url);
30
30
  const __dirname = path.dirname(__filename);
31
+ const tsFiles = ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'];
31
32
  const compat = new FlatCompat({
32
33
  baseDirectory: __dirname,
33
34
  recommendedConfig: js.configs.recommended,
@@ -53,7 +54,7 @@ export default [
53
54
  prettier,
54
55
  import: fixupPluginRules(_import),
55
56
  node,
56
- '@stylistic/js': stylisticJs,
57
+ '@stylistic': stylistic,
57
58
  },
58
59
 
59
60
  languageOptions: {
@@ -106,8 +107,7 @@ export default [
106
107
  'new-cap': 'error',
107
108
  'no-extend-native': 'error',
108
109
  'no-use-before-define': 'off',
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',
@@ -139,6 +139,18 @@ export default [
139
139
  ],
140
140
  },
141
141
  },
142
+ {
143
+ files: tsFiles,
144
+ languageOptions: {
145
+ parserOptions: {
146
+ projectService: true,
147
+ tsconfigRootDir: process.cwd(),
148
+ },
149
+ },
150
+ rules: {
151
+ ...consistentTypeImports,
152
+ },
153
+ },
142
154
  overrides.allowRequireInConfigs,
143
155
  overrides.noExplicitsInTests,
144
156
  overrides.noCastWithJestMock,
package/CHANGELOG.md DELETED
@@ -1,12 +0,0 @@
1
- ## 3.0.0
2
-
3
- Override recommended no explicit type any in tests
4
-
5
- ## 2.0.0
6
-
7
- Removed separate file for testing-library, added testing-library rules to `frontend-typescript.js`.
8
- Extended `frontend.js` in `frontend-typescript.js` and `frontend-typescript-vue.js`.
9
-
10
- ## 1.0.0
11
-
12
- Breaking changes of the eslint-config-prettier 8.0.0