From caadec811ae57446dfb5e12489991f029d8e6aee Mon Sep 17 00:00:00 2001 From: Bob Senoff Date: Thu, 7 May 2026 14:49:44 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20prettier=E2=86=94eslint=20config=20drift?= =?UTF-8?q?=20on=20comma-dangle=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 7 ++++--- .prettierrc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 03557ea7a..1931cff9d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,12 +14,13 @@ }, "rules": { "arrow-parens": ["error", "as-needed"], + "import/extensions": ["off"], "class-methods-use-this": ["off"], "comma-dangle": ["error", {"arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "never"}], "default-case": ["off"], "func-names": ["off", "never"], "global-require": ["off"], - "max-len": ["error", {"code": 120, "ignoreComments": true, "ignoreStrings": true}], + "max-len": ["error", {"code": 120, "ignoreComments": true, "ignoreStrings": true, "ignoreTemplateLiterals": true}], "no-console": ["error", { "allow": ["warn"] }], "no-continue": ["off"], "no-mixed-operators": ["error", {"allowSamePrecedence": true}], @@ -41,9 +42,9 @@ "prefer-destructuring": ["warn", {"array": false, "object": true}], "prefer-object-spread": ["off"], "prefer-rest-params": ["off"], - "quotes": ["error", "single"], + "quotes": ["error", "single", {"avoidEscape": true}], "semi": ["error", "always"], - "space-before-function-paren": ["error", {"anonymous": "never", "named": "never", "asyncArrow": "always"}], + "space-before-function-paren": ["error", {"anonymous": "ignore", "named": "never", "asyncArrow": "always"}], "strict": ["off"] } } diff --git a/.prettierrc b/.prettierrc index 9f4d9560f..d49c5c4f3 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,7 +1,7 @@ { "bracketSpacing": false, "printWidth": 100, - "trailingComma": "all", + "trailingComma": "es5", "arrowParens": "avoid", "singleQuote": true }