@remotion/eslint-config-flat 4.0.271 → 4.0.273

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/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import eslint from '@eslint/js';
2
2
  import remotionPlugin from '@remotion/eslint-plugin';
3
3
  import reactPlugin from 'eslint-plugin-react';
4
- // @ts-expect-error no types
5
4
  import hooksPlugin from 'eslint-plugin-react-hooks';
6
5
  import tseslint from 'typescript-eslint';
7
6
  export const makeConfig = ({ remotionDir, }) => tseslint.config({
@@ -13,7 +12,7 @@ export const makeConfig = ({ remotionDir, }) => tseslint.config({
13
12
  'remotion.config.ts',
14
13
  'remotion.config.js',
15
14
  ],
16
- }, eslint.configs.recommended, tseslint.configs.recommended, {
15
+ }, eslint.configs.recommended, tseslint.configs.eslintRecommended, tseslint.configs.recommended, {
17
16
  plugins: {
18
17
  react: reactPlugin,
19
18
  'react-hooks': hooksPlugin,
@@ -22,11 +21,13 @@ export const makeConfig = ({ remotionDir, }) => tseslint.config({
22
21
  ...reactPlugin.configs.flat.recommended.languageOptions,
23
22
  parser: tseslint.parser,
24
23
  parserOptions: {
25
- projectService: true,
24
+ projectService: false,
26
25
  },
27
26
  },
28
27
  rules: {
29
- ...reactPlugin.configs.flat.rules,
28
+ // wrong types 🙈
29
+ ...reactPlugin.configs.flat
30
+ .rules,
30
31
  ...hooksPlugin.configs.recommended.rules,
31
32
  // Turning off rules that are too strict or don't apply to Remotion
32
33
  'no-console': 'off',
@@ -49,9 +50,6 @@ export const makeConfig = ({ remotionDir, }) => tseslint.config({
49
50
  },
50
51
  rules: remotionPlugin.configs.recommended.rules,
51
52
  ...(remotionDir ? { files: [remotionDir] } : {}),
52
- }, {
53
- files: ['**/*.js'],
54
- extends: [tseslint.configs.disableTypeChecked],
55
53
  });
56
54
  export const config = makeConfig({
57
55
  remotionDir: undefined,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/eslint-config-flat"
4
4
  },
5
5
  "name": "@remotion/eslint-config-flat",
6
- "version": "4.0.271",
6
+ "version": "4.0.273",
7
7
  "description": "Default configuration for Remotion templates (ESLint >= 9)",
8
8
  "main": "dist/esm/index.mjs",
9
9
  "type": "module",
@@ -23,10 +23,10 @@
23
23
  "typescript-eslint": "8.21.0",
24
24
  "@eslint/js": "9.19.0",
25
25
  "eslint-plugin-react": "7.37.4",
26
- "eslint-plugin-react-hooks": "5.2.0-canary-de1eaa26-20250124",
26
+ "eslint-plugin-react-hooks": "5.2.0",
27
27
  "eslint": "9.19.0",
28
- "@remotion/eslint-plugin": "4.0.271",
29
- "@remotion/eslint-config-internal": "4.0.271"
28
+ "@remotion/eslint-plugin": "4.0.273",
29
+ "@remotion/eslint-config-internal": "4.0.273"
30
30
  },
31
31
  "keywords": [
32
32
  "remotion",