@frontify/eslint-config-react 1.0.4 → 1.0.6

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/eslint.config.mjs CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  import eslintPluginReact from '@eslint-react/eslint-plugin';
4
4
  import basicConfig from '@frontify/eslint-config-basic';
5
+ import { defineConfig } from 'eslint/config';
5
6
  // @ts-expect-error No types available
6
7
  import eslintPluginJsxA11yX from 'eslint-plugin-jsx-a11y-x';
7
8
  import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
8
- import tseslint from 'typescript-eslint';
9
9
 
10
- export default tseslint.config(
10
+ export default defineConfig(
11
11
  basicConfig,
12
12
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-argument
13
13
  eslintPluginJsxA11yX.flatConfigs.recommended,
@@ -58,13 +58,13 @@ export default tseslint.config(
58
58
  '@eslint-react/no-useless-fragment': 'error',
59
59
  '@eslint-react/no-unused-props': 'error',
60
60
  '@eslint-react/no-unnecessary-use-prefix': 'error',
61
- '@eslint-react/prefer-shorthand-boolean': 'warn',
62
- '@eslint-react/prefer-react-namespace-import': 'error',
61
+ '@eslint-react/jsx-shorthand-boolean': 'warn',
62
+ '@eslint-react/prefer-namespace-import': 'error',
63
63
  '@eslint-react/dom/no-missing-button-type': 'error',
64
64
  '@eslint-react/dom/no-missing-iframe-sandbox': 'error',
65
- '@eslint-react/hooks-extra/no-unnecessary-use-callback': 'error',
66
- '@eslint-react/hooks-extra/no-unnecessary-use-memo': 'error',
67
- '@eslint-react/hooks-extra/prefer-use-state-lazy-initialization': 'error',
65
+ '@eslint-react/no-unnecessary-use-callback': 'error',
66
+ '@eslint-react/no-unnecessary-use-memo': 'error',
67
+ '@eslint-react/prefer-use-state-lazy-initialization': 'error',
68
68
  '@eslint-react/naming-convention/component-name': ['error', 'PascalCase'],
69
69
  '@eslint-react/naming-convention/context-name': 'error',
70
70
  '@eslint-react/naming-convention/filename-extension': ['warn', 'as-needed'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontify/eslint-config-react",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "author": "Frontify Developers <developers@frontify.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -19,21 +19,22 @@
19
19
  "react": "^18 || ^19"
20
20
  },
21
21
  "dependencies": {
22
- "@eslint-react/eslint-plugin": "^2.0.0-next.148",
22
+ "@eslint-react/eslint-plugin": "^2.3.1",
23
23
  "eslint-plugin-jsx-a11y-x": "^0.1.1",
24
- "eslint-plugin-react-hooks": "^5.2.0",
25
- "globals": "^16.3.0",
26
- "typescript-eslint": "^8.41.0",
27
- "@frontify/eslint-config-basic": "^1.0.5"
24
+ "eslint-plugin-react-hooks": "^7.0.1",
25
+ "globals": "^16.5.0",
26
+ "typescript-eslint": "^8.46.3",
27
+ "@frontify/eslint-config-basic": "^1.0.7"
28
28
  },
29
29
  "devDependencies": {
30
- "eslint": "^9.34.0",
30
+ "eslint": "^9.39.1",
31
31
  "prettier": "^3.6.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "scripts": {
37
- "lint": "eslint ."
37
+ "lint": "eslint .",
38
+ "typecheck": "tsc --noEmit"
38
39
  }
39
40
  }