@cutting/eslint-config 5.5.0 → 5.7.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.
Files changed (2) hide show
  1. package/package.json +12 -12
  2. package/react.mjs +46 -41
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutting/eslint-config",
3
- "version": "5.5.0",
3
+ "version": "5.7.0",
4
4
  "description": "Cutting eslint configuration definition",
5
5
  "type": "module",
6
6
  "module": "index.mjs",
@@ -20,28 +20,28 @@
20
20
  "react"
21
21
  ],
22
22
  "dependencies": {
23
- "@typescript-eslint/eslint-plugin": "8.47.0",
24
- "@typescript-eslint/parser": "8.47.0",
25
- "eslint": "9.39.1",
23
+ "@typescript-eslint/eslint-plugin": "8.58.1",
24
+ "@typescript-eslint/parser": "8.58.1",
25
+ "eslint": "10.2.0",
26
26
  "eslint-config-prettier": "10.1.8",
27
27
  "eslint-plugin-import": "2.32.0",
28
28
  "eslint-plugin-jsx-a11y": "6.10.2",
29
- "eslint-plugin-prettier": "5.5.4",
29
+ "eslint-plugin-prettier": "5.5.5",
30
30
  "eslint-plugin-react": "7.37.5",
31
31
  "eslint-plugin-react-hooks": "7.0.1",
32
- "eslint-plugin-simple-import-sort": "12.1.1",
33
- "prettier": "3.6.2"
32
+ "eslint-plugin-simple-import-sort": "13.0.0",
33
+ "prettier": "3.8.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "@typescript-eslint/eslint-plugin": "8.47.0",
37
- "@typescript-eslint/parser": "8.47.0",
38
- "eslint": "9.39.1",
36
+ "@typescript-eslint/eslint-plugin": "8.58.1",
37
+ "@typescript-eslint/parser": "8.58.1",
38
+ "eslint": "10.2.0",
39
39
  "eslint-config-prettier": "10.1.8",
40
40
  "eslint-plugin-jsx-a11y": "6.10.2",
41
- "eslint-plugin-prettier": "5.5.4",
41
+ "eslint-plugin-prettier": "5.5.5",
42
42
  "eslint-plugin-react": "7.37.5",
43
43
  "eslint-plugin-react-hooks": "7.0.1",
44
- "prettier": "3.6.2"
44
+ "prettier": "3.8.2"
45
45
  },
46
46
  "exports": {
47
47
  "./eslint": "./index.mjs",
package/react.mjs CHANGED
@@ -1,56 +1,61 @@
1
- import react from "eslint-plugin-react";
2
- import reactHooks from "eslint-plugin-react-hooks";
3
- import { fixupPluginRules } from "@eslint/compat";
4
- import path from "node:path";
5
- import { fileURLToPath } from "node:url";
6
- import js from "@eslint/js";
7
- import { FlatCompat } from "@eslint/eslintrc";
8
- import defaultConfig from './index.mjs'
1
+ import path from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+
4
+ import { fixupPluginRules } from '@eslint/compat';
5
+ import { FlatCompat } from '@eslint/eslintrc';
6
+ import js from '@eslint/js';
7
+ import react from 'eslint-plugin-react';
8
+ import reactHooks from 'eslint-plugin-react-hooks';
9
+
10
+ import defaultConfig from './index.mjs';
9
11
 
10
12
  const __filename = fileURLToPath(import.meta.url);
11
13
  const __dirname = path.dirname(__filename);
12
14
  const compat = new FlatCompat({
13
- baseDirectory: __dirname,
14
- recommendedConfig: js.configs.recommended,
15
- allConfig: js.configs.all
15
+ baseDirectory: __dirname,
16
+ recommendedConfig: js.configs.recommended,
17
+ allConfig: js.configs.all,
16
18
  });
17
19
 
18
20
  export default [
19
- ...compat.extends("plugin:react/recommended", "plugin:jsx-a11y/recommended"),
20
- ...defaultConfig,
21
- {
22
- plugins: {
23
- react,
24
- "react-hooks": fixupPluginRules(reactHooks),
25
- },
21
+ ...compat.extends('plugin:react/recommended', 'plugin:jsx-a11y/recommended'),
22
+ ...defaultConfig,
23
+ {
24
+ plugins: {
25
+ react,
26
+ 'react-hooks': fixupPluginRules(reactHooks),
27
+ },
26
28
 
27
- languageOptions: {
28
- ecmaVersion: 5,
29
- sourceType: "script",
29
+ languageOptions: {
30
+ ecmaVersion: 5,
31
+ sourceType: 'script',
30
32
 
31
- parserOptions: {
32
- ecmaFeatures: {
33
- jsx: true,
34
- },
35
- },
36
- },
37
-
38
- settings: {
39
- react: {
40
- pragma: "React",
41
- version: "detect",
42
- },
33
+ parserOptions: {
34
+ ecmaFeatures: {
35
+ jsx: true,
43
36
  },
37
+ },
38
+ },
44
39
 
45
- rules: {
46
- "react-hooks/rules-of-hooks": ["error"],
40
+ settings: {
41
+ react: {
42
+ pragma: 'React',
43
+ version: '19',
44
+ },
45
+ },
47
46
 
48
- "react-hooks/exhaustive-deps": ["error", {
49
- additionalHooks: "(useIsomorphicLayoutEffect)",
50
- }],
47
+ rules: {
48
+ 'react-hooks/rules-of-hooks': ['error'],
51
49
 
52
- "react/prop-types": 0,
53
- "react/react-in-jsx-scope": 0,
50
+ 'react-hooks/exhaustive-deps': [
51
+ 'error',
52
+ {
53
+ additionalHooks: '(useIsomorphicLayoutEffect)',
54
54
  },
55
+ ],
56
+
57
+ 'react/prop-types': 0,
58
+ 'react/react-in-jsx-scope': 0,
55
59
  },
56
- ];
60
+ },
61
+ ];