Skip to content

Commit

Permalink
Merge pull request #4140 from remotion-dev/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger authored Jul 31, 2024
2 parents 17d4fe5 + b2ef594 commit 058076e
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 335 deletions.
3 changes: 3 additions & 0 deletions packages/eslint-config/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@jonny",
}
4 changes: 4 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"files": [
"dist"
],
"scripts": {
"lint": "eslint src --ext ts,tsx",
"formatting": "prettier src --check"
},
"bugs": {
"url": "https://github.com/remotion-dev/remotion/issues"
},
Expand Down
78 changes: 39 additions & 39 deletions packages/eslint-config/src/auto-import-rules.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
export const autoImports = {
useRef: "import {useRef} from 'react'",
useEffect: "import {useEffect} from 'react'",
useState: "import {useState} from 'react'",
useCallback: "import {useCallback} from 'react'",
useMemo: "import {useMemo} from 'react'",
useReducer: "import {useReducer} from 'react'",
useCurrentFrame: "import {useCurrentFrame} from 'remotion'",
useVideoConfig: "import {useVideoConfig} from 'remotion'",
spring: "import {spring} from 'remotion'",
measureSpring: "import {measureSpring} from 'remotion'",
random: "import {random} from 'remotion'",
interpolate: "import {interpolate} from 'remotion'",
interpolateColors: "import {interpolateColors} from 'remotion'",
Easing: "import {Easing} from 'remotion'",
getInputProps: "import {getInputProps} from 'remotion'",
getStaticFiles: "import {getStaticFiles} from '@remotion/studio'",
watchStaticFiles: "import {watchStaticFiles} from '@remotion/studio'",
continueRender: "import {continueRender} from 'remotion'",
delayRender: "import {delayRender} from 'remotion'",
AbsoluteFill: "import {AbsoluteFill} from 'remotion'",
Sequence: "import {Sequence} from 'remotion'",
Composition: "import {Composition} from 'remotion'",
Audio: "import {Audio} from 'remotion'",
Video: "import {Video} from 'remotion'",
OffthreadVideo: "import {OffthreadVideo} from 'remotion'",
Series: "import {Series} from 'remotion'",
Still: "import {Still} from 'remotion'",
Freeze: "import {Freeze} from 'remotion'",
Loop: "import {Loop} from 'remotion'",
staticFile: "import {staticFile} from 'remotion'",
Config: "import {Config} from '@remotion/cli/config'",
Img: "import {Img} from 'remotion'",
IFrame: "import {IFrame} from 'remotion'",
Folder: "import {Folder} from 'remotion'",
useCurrentScale: "import {useCurrentScale} from 'remotion'",
VERSION: "import {VERSION} from 'remotion'",
watchStaticFile: "import {watchStaticFile} from 'remotion'",
z: "import {z} from 'zod'",
styled: "import styled from 'styled-components'",
useRef: "import {useRef} from 'react'",
useEffect: "import {useEffect} from 'react'",
useState: "import {useState} from 'react'",
useCallback: "import {useCallback} from 'react'",
useMemo: "import {useMemo} from 'react'",
useReducer: "import {useReducer} from 'react'",
useCurrentFrame: "import {useCurrentFrame} from 'remotion'",
useVideoConfig: "import {useVideoConfig} from 'remotion'",
spring: "import {spring} from 'remotion'",
measureSpring: "import {measureSpring} from 'remotion'",
random: "import {random} from 'remotion'",
interpolate: "import {interpolate} from 'remotion'",
interpolateColors: "import {interpolateColors} from 'remotion'",
Easing: "import {Easing} from 'remotion'",
getInputProps: "import {getInputProps} from 'remotion'",
getStaticFiles: "import {getStaticFiles} from '@remotion/studio'",
watchStaticFiles: "import {watchStaticFiles} from '@remotion/studio'",
continueRender: "import {continueRender} from 'remotion'",
delayRender: "import {delayRender} from 'remotion'",
AbsoluteFill: "import {AbsoluteFill} from 'remotion'",
Sequence: "import {Sequence} from 'remotion'",
Composition: "import {Composition} from 'remotion'",
Audio: "import {Audio} from 'remotion'",
Video: "import {Video} from 'remotion'",
OffthreadVideo: "import {OffthreadVideo} from 'remotion'",
Series: "import {Series} from 'remotion'",
Still: "import {Still} from 'remotion'",
Freeze: "import {Freeze} from 'remotion'",
Loop: "import {Loop} from 'remotion'",
staticFile: "import {staticFile} from 'remotion'",
Config: "import {Config} from '@remotion/cli/config'",
Img: "import {Img} from 'remotion'",
IFrame: "import {IFrame} from 'remotion'",
Folder: "import {Folder} from 'remotion'",
useCurrentScale: "import {useCurrentScale} from 'remotion'",
VERSION: "import {VERSION} from 'remotion'",
watchStaticFile: "import {watchStaticFile} from 'remotion'",
z: "import {z} from 'zod'",
styled: "import styled from 'styled-components'",
};
Loading

0 comments on commit 058076e

Please sign in to comment.