Skip to content

🎥 Make videos programmatically with React

ternary for TS

Jonny Burger8365ac589a84
diff --git a/packages/eslint-config/src/index.ts b/packages/eslint-config/src/index.ts
index c615a7cf53..13d6b834c6 100644
--- a/packages/eslint-config/src/index.ts
+++ b/packages/eslint-config/src/index.ts
@@ -290,23 +290,6 @@ const getRules = (typescript: boolean) => {
"no-restricted-globals": ["error", "event"],
"no-shadow-restricted-names": "error",
"no-undef-init": "error",
- "no-undef": [
- "error",
- {
- typeof: true,
- },
- ],
- "no-unused-vars": [
- "error",
- {
- vars: "all",
- args: "after-used",
- ignoreRestSiblings: true,
- argsIgnorePattern: /^_/.source,
- caughtErrors: "all",
- caughtErrorsIgnorePattern: /^_$/.source,
- },
- ],
"no-buffer-constructor": "error",
"no-restricted-imports": [
"error",
@@ -538,7 +521,26 @@ const getRules = (typescript: boolean) => {
// Using `require` is useful for importing PNG sequences: require('frame' + frame + '.png')
"@typescript-eslint/no-var-requires": "off",
}
- : {}),
+ : {
+ "no-undef": [
+ "error",
+ {
+ typeof: true,
+ },
+ ],
+
+ "no-unused-vars": [
+ "error",
+ {
+ vars: "all",
+ args: "after-used",
+ ignoreRestSiblings: true,
+ argsIgnorePattern: /^_/.source,
+ caughtErrors: "all",
+ caughtErrorsIgnorePattern: /^_$/.source,
+ },
+ ],
+ }),
// In Root.tsx we encourage using fragment for just a single composition
// since we intend to add more compositions later and you should then use a fragment.
"react/jsx-no-useless-fragment": "off",