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:
Mike Arvela
2022-09-26 11:08:59 +03:00
committed by GitHub
parent 7aa40bf95d
commit 31391a5b19
5 changed files with 2753 additions and 5 deletions

View File

@@ -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
// ******************************************************************