🎥 Make videos programmatically with React
mention new ESLint rule
Jonny Burger4bcd580b7b24
diff --git a/packages/docs/blog/2021-02-25-remotion-1-4.mdx b/packages/docs/blog/2021-02-25-remotion-1-4.mdsimilarity index 95%rename from packages/docs/blog/2021-02-25-remotion-1-4.mdxrename to packages/docs/blog/2021-02-25-remotion-1-4.mdindex e2dbb83c43..131a8f35d1 100644--- a/packages/docs/blog/2021-02-25-remotion-1-4.mdx+++ b/packages/docs/blog/2021-02-25-remotion-1-4.md@@ -136,6 +136,21 @@ Stay tuned for a new API in the future that will allow you to measure video andWhile Remotion is primarily developed on macOS, other operating systems shouldn't have a sub-par experience or get bugs. While it does not replace manual testing, it helps that [there are now some end-to-end tests for rendering videos](https://github.com/JonnyBurger/remotion/blob/main/tests/rendering.test.ts) and the test suite now runs on all 3 operating systems. Going forward, I will add more tests and contributors are also encouraged to do so.+## ESLint rule for wrong asset import++In Remotion, you shouldn't specify the `src` as filepath string, but import the asset instead. To help you not make this mistake, there's a new ESLint rule:++```tsx+import {Img} from 'remotion';+import hi from './hi.png';++// ✅ Correct: Using an import statement+<Img src={hi} />++// ⚠️ Warning since 1.4: Import the asset instead+<Img src="./hi.png"/>+```+## Paying top contributorsSince Remotion [will make money by selling licenses to bigger companies](https://github.com/JonnyBurger/remotion/blob/main/LICENSE.md), it's only fair to give contributors their share as well! I have made offers to two top contributors so far to compensate them for their time spent so far and for potential future work. Gladly, they both accepted!