Skip to content

Commit 6d6f3d5

Browse files
committed
chore: minor cleanups
1 parent d4a0243 commit 6d6f3d5

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.pkgs/configs/eslint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const templateIndentTags = [
1313
"ts",
1414
"tsx",
1515
"html",
16+
"glsl",
1617
"dedent",
1718
"outdent",
1819
];
@@ -108,7 +109,7 @@ export const typescript = tseslint.config({
108109
"function/function-return-boolean": ["error", { pattern: "/^(is|has|can|should)/" }],
109110
"@stylistic/arrow-parens": ["warn", "always"],
110111
"@stylistic/no-multi-spaces": ["warn"],
111-
"@stylistic/operator-linebreak": ["warn", "before"],
112+
"@stylistic/operator-linebreak": "off",
112113
"@stylistic/quote-props": ["error", "as-needed"],
113114
"perfectionist/sort-exports": ["warn", { type: "natural", order: "asc" }],
114115
"perfectionist/sort-imports": ["warn", {

.pkgs/configs/eslint.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const templateIndentTags = [
1717
"ts",
1818
"tsx",
1919
"html",
20+
"glsl",
2021
"dedent",
2122
"outdent",
2223
];
@@ -121,7 +122,7 @@ export const typescript: ConfigArray = tseslint.config(
121122

122123
"@stylistic/arrow-parens": ["warn", "always"],
123124
"@stylistic/no-multi-spaces": ["warn"],
124-
"@stylistic/operator-linebreak": ["warn", "before"],
125+
"@stylistic/operator-linebreak": "off",
125126
"@stylistic/quote-props": ["error", "as-needed"],
126127

127128
"perfectionist/sort-exports": ["warn", { type: "natural", order: "asc" }],

packages/plugins/eslint-plugin-react-x/src/rules/no-misused-capture-owner-stack.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,5 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
7272
function isDevelopmentOnlyCheck(node: TSESTree.Node) {
7373
if (node.type !== T.IfStatement) return false;
7474
if (AST.isProcessEnvNodeEnvCompare(node.test, "!==", "production")) return true;
75-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "===", "development")) return true;
76-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "!=", "production")) return true;
77-
// if (AST.isProcessEnvNodeEnvCompare(node.test, "==", "development")) return true;
7875
return false;
7976
}

0 commit comments

Comments
 (0)