diff --git a/.pkgs/configs/eslint.js b/.pkgs/configs/eslint.js index 344af0eea0..722e16527f 100644 --- a/.pkgs/configs/eslint.js +++ b/.pkgs/configs/eslint.js @@ -13,6 +13,7 @@ const templateIndentTags = [ "ts", "tsx", "html", + "glsl", "dedent", "outdent", ]; @@ -108,7 +109,7 @@ export const typescript = tseslint.config({ "function/function-return-boolean": ["error", { pattern: "/^(is|has|can|should)/" }], "@stylistic/arrow-parens": ["warn", "always"], "@stylistic/no-multi-spaces": ["warn"], - "@stylistic/operator-linebreak": ["warn", "before"], + "@stylistic/operator-linebreak": "off", "@stylistic/quote-props": ["error", "as-needed"], "perfectionist/sort-exports": ["warn", { type: "natural", order: "asc" }], "perfectionist/sort-imports": ["warn", { diff --git a/.pkgs/configs/eslint.ts b/.pkgs/configs/eslint.ts index 6f138a50b1..d9db2b42a9 100644 --- a/.pkgs/configs/eslint.ts +++ b/.pkgs/configs/eslint.ts @@ -17,6 +17,7 @@ const templateIndentTags = [ "ts", "tsx", "html", + "glsl", "dedent", "outdent", ]; @@ -121,7 +122,7 @@ export const typescript: ConfigArray = tseslint.config( "@stylistic/arrow-parens": ["warn", "always"], "@stylistic/no-multi-spaces": ["warn"], - "@stylistic/operator-linebreak": ["warn", "before"], + "@stylistic/operator-linebreak": "off", "@stylistic/quote-props": ["error", "as-needed"], "perfectionist/sort-exports": ["warn", { type: "natural", order: "asc" }], diff --git a/packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts b/packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts index 53b1e7d57e..57ffef0126 100644 --- a/packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts +++ b/packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts @@ -72,8 +72,5 @@ export function create(context: RuleContext): RuleListener { function isDevelopmentOnlyCheck(node: TSESTree.Node) { if (node.type !== T.IfStatement) return false; if (AST.isProcessEnvNodeEnvCompare(node.test, "!==", "production")) return true; - // if (AST.isProcessEnvNodeEnvCompare(node.test, "===", "development")) return true; - // if (AST.isProcessEnvNodeEnvCompare(node.test, "!=", "production")) return true; - // if (AST.isProcessEnvNodeEnvCompare(node.test, "==", "development")) return true; return false; }