mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(eslint-config): add custom eslint rule 'no-uncaught-json-parse' (#4087)
feat(eslint-config): add custom eslint rule 'no-uncaugh-json-parse' Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -40,6 +40,12 @@ module.exports = {
|
||||
* https://github.com/paleite/eslint-plugin-diff#plugindiffdiff-recommended
|
||||
*/
|
||||
'eslint-plugin-diff',
|
||||
|
||||
/*
|
||||
* Plugin to allow specifying local ESLint rules.
|
||||
* https://github.com/ivov/eslint-plugin-n8n-local-rules
|
||||
*/
|
||||
'eslint-plugin-n8n-local-rules',
|
||||
],
|
||||
|
||||
extends: [
|
||||
@@ -324,6 +330,13 @@ module.exports = {
|
||||
*/
|
||||
'import/order': 'error',
|
||||
|
||||
// ----------------------------------
|
||||
// eslint-plugin-n8n-local-rules
|
||||
// ----------------------------------
|
||||
|
||||
// TODO: set to `error` and fix offenses
|
||||
'n8n-local-rules/no-uncaught-json-parse': 'warn',
|
||||
|
||||
// ******************************************************************
|
||||
// overrides to base ruleset
|
||||
// ******************************************************************
|
||||
|
||||
Reference in New Issue
Block a user