Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

teach eslint to ignor underscored vars, catch arguments and ignore rest variable

Oleg Isonen3ca17e2253a8
diff --git a/.eslintrc.json b/.eslintrc.json
index 1f8b5d3606..1d8cf7ecde 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -27,9 +27,15 @@
"rules": {
// It's too dumb to understand properly what's defined in ts
"react/prop-types": 0,
+ "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
- { "argsIgnorePattern": "^_" }
+ {
+ "argsIgnorePattern": "^_",
+ "varsIgnorePattern": "^_",
+ "caughtErrorsIgnorePattern": "^_",
+ "ignoreRestSiblings": true
+ }
],
"react/react-in-jsx-scope": 0,
"func-style": ["error", "expression", { "allowArrowFunctions": true }],