@frontify/eslint-config-react 1.0.3 → 1.0.5

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,
@@ -100,4 +100,9 @@ export default tseslint.config(
100
100
  'jsx-a11y-x/click-events-have-key-events': 'off',
101
101
  },
102
102
  },
103
+ {
104
+ // Disable type check rules for JSON and YML/YAML files
105
+ files: ['**/*.json', '**/*.yaml', '**/*.yml'],
106
+ extends: [eslintPluginReact.configs['disable-type-checked']],
107
+ },
103
108
  );
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.3",
4
+ "version": "1.0.5",
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-beta.23",
22
+ "@eslint-react/eslint-plugin": "^2.3.1",
23
23
  "eslint-plugin-jsx-a11y-x": "^0.1.1",
24
24
  "eslint-plugin-react-hooks": "^5.2.0",
25
- "globals": "^16.3.0",
26
- "typescript-eslint": "^8.39.0",
27
- "@frontify/eslint-config-basic": "^1.0.4"
25
+ "globals": "^16.5.0",
26
+ "typescript-eslint": "^8.46.2",
27
+ "@frontify/eslint-config-basic": "^1.0.6"
28
28
  },
29
29
  "devDependencies": {
30
- "eslint": "^9.33.0",
30
+ "eslint": "^9.39.0",
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
  }