nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit d9f54f315ece6993983783b27543805dd5c447ca
parent fef67114906f4065bf0aaba13f0a19908345b3c1
Author: Sergey Orlov <wladimirych@gmail.com>
Date:   Thu, 17 Sep 2020 20:56:36 +0200

eslint: allow to use custom "fetch" function in app code

Diffstat:
M.eslintrc.js | 1+
Aeslint_rules/relax_webapp_js.js | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js @@ -16,6 +16,7 @@ module.exports = { }, { files: './src/**/*.js', // web application + extends: ['./eslint_rules/relax_webapp_js.js'], env: { browser: true, es2020: true, diff --git a/eslint_rules/relax_webapp_js.js b/eslint_rules/relax_webapp_js.js @@ -0,0 +1,7 @@ +'use strict'; + +module.exports = { + rules: { + 'no-shadow': ['error', {builtinGlobals: true, allow: ['fetch']}], + }, +};