refactor: lint for inefficient deep clones (#4378)

* 👕 Create rule `no-json-parse-json-stringify`

* 🧪 Add tests

* 👕 Enable new rule

* 👕 FIx unrelated lint issue
This commit is contained in:
Iván Ovejero
2022-10-19 09:36:25 +02:00
committed by GitHub
parent a02e92d664
commit 6a1838d8c1
4 changed files with 77 additions and 2 deletions

View File

@@ -323,6 +323,9 @@ const config = (module.exports = {
// TODO: set to `error` and fix offenses
'n8n-local-rules/no-uncaught-json-parse': 'warn',
// TODO: set to `error` and fix offenses
'n8n-local-rules/no-json-parse-json-stringify': 'warn',
// ******************************************************************
// overrides to base ruleset
// ******************************************************************